Versions in this module Expand all Collapse all v1 v1.0.0 Sep 4, 2016 Changes in this version + func ColumnDBTypes(cols []Column) map[string]string + func ColumnNames(cols []Column) []string + type Column struct + DBType string + Default string + Name string + Nullable bool + Type string + Unique bool + Validated bool + func FilterColumnsByDefault(defaults bool, columns []Column) []Column + type ForeignKey struct + Column string + ForeignColumn string + ForeignColumnNullable bool + ForeignColumnUnique bool + ForeignTable string + Name string + Nullable bool + Table string + Unique bool + type Interface interface + Close func() + Columns func(tableName string) ([]Column, error) + ForeignKeyInfo func(tableName string) ([]ForeignKey, error) + Open func() error + PrimaryKeyInfo func(tableName string) (*PrimaryKey, error) + TableNames func(exclude []string) ([]string, error) + TranslateColumnType func(Column) Column + UseLastInsertID func() bool + type PrimaryKey struct + Columns []string + Name string + type SQLColumnDef struct + Name string + Type string + func (s SQLColumnDef) String() string + type SQLColumnDefs []SQLColumnDef + func SQLColDefinitions(cols []Column, names []string) SQLColumnDefs + func (s SQLColumnDefs) Names() []string + func (s SQLColumnDefs) Types() []string + type Table struct + Columns []Column + FKeys []ForeignKey + IsJoinTable bool + Name string + PKey *PrimaryKey + ToManyRelationships []ToManyRelationship + func GetTable(tables []Table, name string) (tbl Table) + func Tables(db Interface, exclude ...string) ([]Table, error) + func (t Table) GetColumn(name string) (col Column) + type ToManyRelationship struct + Column string + ForeignColumn string + ForeignColumnNullable bool + ForeignColumnUnique bool + ForeignTable string + JoinForeignColumn string + JoinForeignColumnNullable bool + JoinForeignColumnUnique bool + JoinLocalColumn string + JoinLocalColumnNullable bool + JoinLocalColumnUnique bool + JoinTable string + Nullable bool + Table string + ToJoinTable bool + Unique bool + func ToManyRelationships(table string, tables []Table) []ToManyRelationship Incompatible versions in this module v2.0.1+incompatible Sep 21, 2016 v2.0.0+incompatible Sep 15, 2016