feat: expose CustomExpression+Token in mysql/postgres/sqlite

This commit is contained in:
Mathieu Kooiman 2024-07-13 17:10:26 +02:00
parent 3ec0e2cabd
commit 6cabfcdc1a
3 changed files with 18 additions and 0 deletions

View file

@ -73,6 +73,12 @@ var DateTimeExp = jet.TimestampExp
// Does not add sql cast to generated sql builder output.
var TimestampExp = jet.TimestampExp
// CustomExpression is used to define custom expressions.
var CustomExpression = jet.CustomExpression
// Token is used to define custom token in a custom expression.
type Token = jet.Token
// RawArgs is type used to pass optional arguments to Raw method
type RawArgs = map[string]interface{}