public interface CreateFunctionWithLanguage
Modifier and Type | Method and Description |
---|---|
CreateFunctionEnd |
as(String functionBody)
Adds AS to the create function specification.
|
default CreateFunctionEnd |
asQuoted(String functionBody)
Adds AS to the create function specification and quotes the function body.
|
@NonNull CreateFunctionEnd as(@NonNull String functionBody)
'myBody'
. If the body itself contains single quotes, one could use a
postgres-style string literal, which is surrounded in two dollar signs, i.e. $$ myBody $$
.@NonNull default CreateFunctionEnd asQuoted(@NonNull String functionBody)
$$ myBody $$
, otherwise the body is quoted with single quotes, i.e.
' myBody '
. If the function body is already quoted as(String)
should be used
instead.Copyright © 2017–2022. All rights reserved.