Add UUID helper function
UUID creates string literal expression from uuid object. uuid can be any uuid type with a String method.
This commit is contained in:
parent
256be8a406
commit
f30cbb9e89
5 changed files with 19 additions and 2 deletions
|
|
@ -409,3 +409,9 @@ func Raw(raw string, parent ...Expression) Expression {
|
|||
|
||||
return rawExp
|
||||
}
|
||||
|
||||
// UUID is a helper function to create string literal expression from uuid object
|
||||
// value can be any uuid type with a String method
|
||||
func UUID(value fmt.Stringer) StringExpression {
|
||||
return String(value.String())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue