Add SetArguments(args) method for dialect_xxxxx.go support. (https://github.com/go-xorm/xorm/issues/793) (#36)

This commit is contained in:
m2nlight 2018-03-07 17:19:18 +08:00 committed by Lunny Xiao
parent 11bcc82696
commit 29b157685d
1 changed files with 4 additions and 0 deletions

View File

@ -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{}
)