typemap

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package typemap normalises native database column type strings into the OpenMetadata ColumnDataType enum, preserving the original string for display and extracting length/precision/scale where present. There is one mapping table per supported source; unmapped types fall back to UNKNOWN.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	DataType  ometa.ColumnDataType
	Display   string // the original native type string
	Length    *int32 // character length, where applicable
	Precision *int32 // numeric precision, where applicable
	Scale     *int32 // numeric scale, where applicable
}

Result is the outcome of mapping a native type.

func Map

func Map(serviceType, native string) Result

Map normalises native into an OpenMetadata data type for the given service type ("Postgres", "Mysql", "Clickhouse"). It never fails: unknown types map to UNKNOWN.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL