Documentation
¶
Index ¶
- Variables
- func NotImplemented(src catalog.Catalog, tgt annotater)
- func Object[T any](o T) T
- func RegisterDataTypes(m map[string]string) error
- func RegisterObjectConverter[T any](fn ObjectConverterFunc[T])
- func Rule(path string) rule
- func Schemas(srcSchemas []catalog.Schema) []catalog.Schema
- func Sequences(seqs []catalog.Sequence) []catalog.Sequence
- func Tables(srcTables []catalog.Table) []catalog.Table
- func TargetIdentifier(path ...string) string
- func Type(path string, src catalog.DataType) catalog.DataType
- type ObjectConverterFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var Transpiler rewrite.Engine
Functions ¶
func NotImplemented ¶ added in v1.0.0
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
Custom converter is called *before* generic conversion.
func Sequences ¶ added in v0.25.0
Sequences converts Sequences for PostgreSQL
Simply apply renaming.
func Tables ¶ added in v0.24.0
Tables converts Tables for PostgreSQL
Applies custom converter before applying renaming and type conversion.
func TargetIdentifier ¶ added in v1.0.0
TargetIdentifier returns converted object identifier
Avoids [Identifier] log message. Faster than [Identifier] on object path. Requires object to be converted.
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.