dal/pkg/adapter/types.go
Anton Nesterov 25f3e18f4a
[wip] adapter
Signed-off-by: Anton Nesterov <anton@demiurg.io>
2024-08-11 16:29:53 +02:00

18 lines
365 B
Go

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