Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct { Name string IsPrimaryKey bool IsNullable bool IsGenerated bool DataType DataType Comment string }
Column struct
type DataType ¶
type DataType struct { Name string Kind DataTypeKind IsUnsigned bool }
DataType contains information about column data type
type DataTypeKind ¶
type DataTypeKind string
DataTypeKind is database type kind(base, enum, user-defined, array)
const ( BaseType DataTypeKind = "base" EnumType DataTypeKind = "enum" UserDefinedType DataTypeKind = "user-defined" ArrayType DataTypeKind = "array" )
DataTypeKind possible values
type DialectQuerySet ¶
type DialectQuerySet interface { GetTablesMetaData(db *sql.DB, schemaName string, tableType TableType) []Table GetEnumsMetaData(db *sql.DB, schemaName string) []Enum }
DialectQuerySet is set of methods necessary to retrieve dialect meta data information
type Schema ¶
type Schema struct { Name string TablesMetaData []Table ViewsMetaData []Table EnumsMetaData []Enum }
Schema struct
type Table ¶
Table metadata struct
func (Table) MutableColumns ¶
MutableColumns returns list of mutable columns for table
Click to show internal directories.
Click to hide internal directories.