We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51cd267 commit a42350dCopy full SHA for a42350d
sqlbuilder/builder.go
@@ -6,9 +6,9 @@ import (
6
)
7
8
// NewQuery new 实例
9
-func NewQuery(querySQL string) *Query {
+func NewQuery(querySQL string, args ...interface{}) *Query {
10
return &Query{
11
- query: querySQL,
+ query: fmt.Sprintf(querySQL, args...),
12
whereStmt: []string{},
13
whereArgs: []interface{}{},
14
limitArgs: []interface{}{},
0 commit comments