dbr/expr.go

12 lines
253 B
Go
Raw Normal View History

2022-10-26 13:53:06 +03:00
package dbr
type expr struct {
Sql string
Values []interface{}
}
// Expr is a SQL fragment with placeholders, and a slice of args to replace them with
func Expr(sql string, values ...interface{}) *expr {
return &expr{Sql: sql, Values: values}
}