add postgres json literal
This commit is contained in:
parent
38b6caf41e
commit
0425e8895c
1 changed files with 5 additions and 0 deletions
|
|
@ -65,6 +65,11 @@ func String(value string) StringExpression {
|
|||
return CAST(jet.String(value)).AS_TEXT()
|
||||
}
|
||||
|
||||
// Json creates new json literal expression
|
||||
func Json(value string) StringExpression {
|
||||
return StringExp(CAST(jet.String(value)).AS("json"))
|
||||
}
|
||||
|
||||
// UUID is a helper function to create string literal expression from uuid object
|
||||
// value can be any uuid type with a String method
|
||||
var UUID = jet.UUID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue