This commit is contained in:
2026-08-26 11:01:46 +03:00
parent 34a798d345
commit 4bd1512994
712 changed files with 538122 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package dbr
type raw struct {
Query string
Value []interface{}
}
// Expr allows raw expression to be used when current SQL syntax is
// not supported by gocraft/dbr.
func Expr(query string, value ...interface{}) Builder {
return &raw{Query: query, Value: value}
}
func (raw *raw) Build(_ Dialect, buf Buffer) error {
buf.WriteString(raw.Query)
buf.WriteValue(raw.Value...)
return nil
}