Documentation
¶
Index ¶
- Variables
- func Default(path, expr string) string
- func Identifier(path, name string) string
- func Object[T any](o T) T
- func RegisterDataTypes(m map[string]string) error
- func RegisterObjectConverter[T any](fn ObjectConverterFunc[T])
- func Schemas(srcSchemas []catalog.Schema) []catalog.Schema
- func Sequences(seqs []catalog.Sequence) []catalog.Sequence
- func Tables(srcTables []catalog.Table) []catalog.Table
- func Type(path string, src catalog.DataType) catalog.DataType
- type ObjectConverterFunc
Constants ¶
This section is empty.
Variables ¶
SourceMap tracks path to source object
View Source
var Transpiler rewrite.Engine
Functions ¶
func Identifier ¶
func RegisterDataTypes ¶ added in v0.25.0
RegisterDataTypes validates and save a data type mapping
Map keys are source types, values are target types. Returns one or more validation errors.
func RegisterObjectConverter ¶ added in v0.24.0
func RegisterObjectConverter[T any](fn ObjectConverterFunc[T])
RegisterObjectConverter associates convert function to DBObject type
func Sequences ¶ added in v0.25.0
Sequences converts Sequences for PostgreSQL
Simply apply renaming.
Types ¶
type ObjectConverterFunc ¶ added in v0.24.0
type ObjectConverterFunc[T any] func(o T) T
Click to show internal directories.
Click to hide internal directories.