Documentation
¶
Index ¶
- func GetConfigString(config map[string]any, key string) string
- func GetConfigStringSlice(config map[string]any, key string) []string
- func GetFromMapPath(m map[string]any, path string) any
- func ParameterizeTemplate(driver, tpl string, data map[string]any) (string, []any)
- func SplitComma(s string) []string
- func SplitSQLConditions(s string) []string
- type CharMapTransformer
- type DataConversionTransformer
- type FilterTransformer
- type MappingTransformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFromMapPath ¶
GetFromMapPath resolves a dotted path in a nested map[string]any.
func ParameterizeTemplate ¶
ParameterizeTemplate replaces all {{ ... }} tokens in the SQL template with driver-specific placeholders and returns the parameterized SQL text and a corresponding args slice. Token content should be either a path like `source.foo` or a quoted literal. Paths are resolved against `data`.
func SplitComma ¶
func SplitSQLConditions ¶
SplitSQLConditions splits a WHERE clause by "AND" while respecting single/double quotes.
Types ¶
type CharMapTransformer ¶
type CharMapTransformer struct{}
type DataConversionTransformer ¶
type DataConversionTransformer struct{}
Click to show internal directories.
Click to hide internal directories.