dal/pkg/adapter/types.go
Anton Nesterov 296595cfea
[doc] fix copilot crap
Signed-off-by: Anton Nesterov <anton@demiurg.io>
2024-08-15 09:10:49 +02:00

21 lines
466 B
Go

package adapter
type Query struct {
Db string `json:"db"`
Expression string `json:"expr"`
Data []interface{} `json:"data"`
}
type DialectOpts map[string]string
/*
Dialect interface provides general utilities for normalizing values for particular DB.
*/
type Dialect interface {
New(opts DialectOpts) Dialect
GetTableName() string
GetFieldName() string
GetColumnName(key string) string
NormalizeValue(interface{}) interface{}
}