db_meta_data

package
v0.0.0-...-bfbcdec Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomerColumnDataType

func CustomerColumnDataType(dbColumnType string, customerType string, importStr string)

Types

type ColumnMetaData

type ColumnMetaData struct {
	Name       string
	DBType     string
	GoType     string
	IsUnsigned bool
	IsNullable bool
	TableName  string
}

func NewColumnMetaData

func NewColumnMetaData(name string, isNullable bool, dataType string, isUnsigned bool, tableName string) *ColumnMetaData

func (ColumnMetaData) Tag

func (c ColumnMetaData) Tag() string

type ColumnMetaDataList

type ColumnMetaDataList []*ColumnMetaData

type TableMetaData

type TableMetaData struct {
	Name    string
	Columns ColumnMetaDataList
}

func (TableMetaData) ColumnsNameWithPrefixAndIgnoreColumn

func (t TableMetaData) ColumnsNameWithPrefixAndIgnoreColumn(col string, prefix string) string

func (TableMetaData) Imports

func (t TableMetaData) Imports() []string

type TableMetaDataList

type TableMetaDataList []*TableMetaData

Jump to

Keyboard shortcuts

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