Documentation ¶
Index ¶
- Constants
- func ConvertStructuredData(columnTypes map[string]string, data opencdc.StructuredData) (opencdc.StructuredData, error)
- func GetColumnTypes(ctx context.Context, db *sqlx.DB, table, schema string) (map[string]string, error)
- func TransformRow(row map[string]any, columnTypes map[string]string) (map[string]any, error)
Constants ¶
View Source
const ( // TimeTypeLayout is a time layout of Redshift Time data type. TimeTypeLayout = "15:04:05" // TimeTzTypeLayout is a time layout of Redshift Time with timezone data type. TimeTzTypeLayout = "15:04:05Z07" )
Variables ¶
This section is empty.
Functions ¶
func ConvertStructuredData ¶
func ConvertStructuredData( columnTypes map[string]string, data opencdc.StructuredData, ) (opencdc.StructuredData, error)
ConvertStructuredData converts a opencdc.StructuredData value to another StructuredData value but with proper database types.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.