ormdrivers

package
v0.0.0-...-794fa9e Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TableColumns = "COLUMNS"

information_schema.COLUMNS

Variables

This section is empty.

Functions

This section is empty.

Types

type Columns

type Columns struct {
	// TABLE_CATALOG : NULLABLE varchar(64)
	TableCatalog sql.NullString
	// TABLE_SCHEMA : NULLABLE varchar(64)
	TableSchema sql.NullString
	// TABLE_NAME : NULLABLE varchar(64)
	TableName sql.NullString
	// COLUMN_NAME : NULLABLE varchar(64)
	ColumnName sql.NullString
	// ORDINAL_POSITION : int unsigned
	OrdinalPosition int
	// COLUMN_DEFAULT : NULLABLE text
	ColumnDefault sql.NullString
	// IS_NULLABLE : varchar(3)
	IsNullable string
	// DATA_TYPE : NULLABLE longtext
	DataType sql.NullString
	// CHARACTER_MAXIMUM_LENGTH : NULLABLE bigint
	CharacterMaximumLength sql.NullInt64
	// CHARACTER_OCTET_LENGTH : NULLABLE bigint
	CharacterOctetLength sql.NullInt64
	// NUMERIC_PRECISION : NULLABLE bigint unsigned
	NumericPrecision sql.NullInt64
	// NUMERIC_SCALE : NULLABLE bigint unsigned
	NumericScale sql.NullInt64
	// DATETIME_PRECISION : NULLABLE int unsigned
	DatetimePrecision sql.NullInt32
	// CHARACTER_SET_NAME : NULLABLE varchar(64)
	CharacterSetName sql.NullString
	// COLLATION_NAME : NULLABLE varchar(64)
	CollationName sql.NullString
	// COLUMN_TYPE : mediumtext
	ColumnType string
	// COLUMN_KEY : enum(”,'PRI','UNI','MUL')
	ColumnKey string
	// EXTRA : NULLABLE varchar(256)
	Extra sql.NullString
	// PRIVILEGES : NULLABLE varchar(154)
	Privileges sql.NullString
	// COLUMN_COMMENT : text
	ColumnComment string
	// GENERATION_EXPRESSION : longtext
	GenerationExpression string
}

func (*Columns) FieldMapping

func (m *Columns) FieldMapping(dst map[string]interface{})

type Mysql

type Mysql struct{}

+zz:orm:information_schema:table=COLUMNS

func (Mysql) Dsn

func (m Mysql) Dsn(password string) (dsn string)

func (Mysql) Name

func (m Mysql) Name() string

func (Mysql) Parse

func (m Mysql) Parse(dsn, schema, table string, types map[string]string, options zcore.Options) (tables []zcore.OrmTable, err error)

type SliceColumns

type SliceColumns []Columns

func (*SliceColumns) Iterate

func (s *SliceColumns) Iterate(f func(interface{}, bool) bool)

Jump to

Keyboard shortcuts

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