2024-08-09 14:56:38 +00:00
|
|
|
package adapter
|
|
|
|
|
2024-08-11 14:29:42 +00:00
|
|
|
type Query struct {
|
|
|
|
Db string `json:"db"`
|
|
|
|
Expression string `json:"expr"`
|
|
|
|
Data []interface{} `json:"data"`
|
|
|
|
}
|
|
|
|
|
2024-08-09 14:56:38 +00:00
|
|
|
type CtxOpts map[string]string
|
|
|
|
|
|
|
|
type Context interface {
|
|
|
|
New(opts CtxOpts) Context
|
|
|
|
GetTableName() string
|
|
|
|
GetFieldName() string
|
2024-08-09 19:14:28 +00:00
|
|
|
GetColumnName(key string) string
|
2024-08-09 14:56:38 +00:00
|
|
|
NormalizeValue(interface{}) interface{}
|
|
|
|
}
|