Add SetArguments(args) method for dialect_xxxxx.go support. #36
|
@ -74,6 +74,7 @@ type Dialect interface {
|
|||
GetIndexes(tableName string) (map[string]*Index, error)
|
||||
|
||||
Filters() []Filter
|
||||
SetArguments(args map[string]string)
|
||||
}
|
||||
|
||||
func OpenDialect(dialect Dialect) (*DB, error) {
|
||||
|
@ -289,6 +290,9 @@ func (b *Base) LogSQL(sql string, args []interface{}) {
|
|||
}
|
||||
}
|
||||
|
||||
func (b *Base) SetArguments(args map[string]string) {
|
||||
}
|
||||
|
||||
var (
|
||||
dialects = map[string]func() Dialect{}
|
||||
)
|
||||
|
|
Reference in New Issue
Block a user