dal/pkg/adapter/types.go

18 lines
373 B
Go
Raw Normal View History

package adapter
type Query struct {
Db string `json:"db"`
Expression string `json:"expr"`
Data []interface{} `json:"data"`
}
type DialectOpts map[string]string
type Dialect interface {
New(opts DialectOpts) Dialect
GetTableName() string
GetFieldName() string
GetColumnName(key string) string
NormalizeValue(interface{}) interface{}
}