metadata

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTableName

func GetTableName(obj interface{}) (string, bool)

Types

type CacheEntry

type CacheEntry struct {
	Columns      []string
	FieldIndexes []int
}

CacheEntry wird für die Metadaten verwendet (ggf. in ein gemeinsames Modell auslagern, falls von mehreren Paketen benötigt)

func ExtractTypeMeta

func ExtractTypeMeta(obj interface{}, cacheLoader func(reflect.Type) (CacheEntry, bool), cacheStorer func(reflect.Type, CacheEntry)) (reflect.Type, reflect.Value, string, CacheEntry, error)

ExtractTypeMeta extrahiert Typ-, Value-, Tabellen- und Cache-Metadaten für ein Objekt

type DataType

type DataType struct {
	Type     string
	Nullable bool
	Default  string
}

type DataTypeInfo

type DataTypeInfo struct {
	Columns []string
	Types   []DataType
}

func GetDataTypeInfo

func GetDataTypeInfo(obj interface{}) DataTypeInfo

Jump to

Keyboard shortcuts

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