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
func (Column) GoLangComment ¶
GoLangComment returns column comment without ascii control characters
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" RangeType DataTypeKind = "range" )
DataTypeKind possible values
type DialectQuerySet ¶
type DialectQuerySet interface { GetTablesMetaData(db *sql.DB, schemaName string, tableType TableType) ([]Table, error) GetEnumsMetaData(db *sql.DB, schemaName string) ([]Enum, error) }
DialectQuerySet is set of methods necessary to retrieve dialect metadata 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.