Add SetArguments(args) method for dialect_xxxxx.go support. (https://github.com/go-xorm/xorm/issues/793) (#36)
This commit is contained in:
parent
11bcc82696
commit
29b157685d
|
@ -74,6 +74,7 @@ type Dialect interface {
|
||||||
GetIndexes(tableName string) (map[string]*Index, error)
|
GetIndexes(tableName string) (map[string]*Index, error)
|
||||||
|
|
||||||
Filters() []Filter
|
Filters() []Filter
|
||||||
|
SetArguments(args map[string]string)
|
||||||
}
|
}
|
||||||
|
|
||||||
func OpenDialect(dialect Dialect) (*DB, error) {
|
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 (
|
var (
|
||||||
dialects = map[string]func() Dialect{}
|
dialects = map[string]func() Dialect{}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue