mydb/raw.go
2023-09-18 15:15:42 +08:00

18 lines
435 B
Go

package mydb
import "git.hexq.cn/tiglog/mydb/internal/adapter"
// RawExpr represents a raw (non-filtered) expression.
type RawExpr = adapter.RawExpr
// Raw marks chunks of data as protected, so they pass directly to the query
// without any filtering. Use with care.
//
// Example:
//
// // SOUNDEX('Hello')
// Raw("SOUNDEX('Hello')")
func Raw(value string, args ...interface{}) *RawExpr {
return adapter.NewRawExpr(value, args)
}