Versions in this module Expand all Collapse all v0 v0.1.12 Oct 14, 2019 v0.1.11 Oct 13, 2019 Changes in this version + type Constraint struct + ColumnName string + ConstraintName string + ReferencedColumnName string + ReferencedTableName string + ReferencedTableSchema string + type Field struct + CharacterMaximumLength sql.NullInt64 + CharacterOctetLength sql.NullInt64 + CharacterSetName sql.NullString + CollationName sql.NullString + ColumnComment string + ColumnDefault sql.NullString + ColumnKey string + ColumnName string + ColumnType string + Constraint *Constraint + DataType string + DatetimePrecision sql.NullInt64 + Extra string + GenerationExpression string + IsNullable bool + NumericPrecision sql.NullInt64 + NumericScale sql.NullInt64 + OrdinalPosition int + Privileges string + SetEnumVals []string + SrsID sql.NullString + TableCatalog string + TableName string + TableSchema string + type Index struct + Expression string + Fields []string + Name string + Unique bool + Visible bool + type IndexField struct + Cardinality sql.NullInt64 + Collation sql.NullString + ColumnName string + Comment string + Expression sql.NullString + IndexComment string + IndexType string + KeyName string + NonUnique bool + Null string + Packed sql.NullString + SeqInIndex int + SubPart sql.NullInt64 + Visible string + type NullTime struct + Time time.Time + Valid bool + func (nt *NullTime) Scan(value interface{}) error + func (nt NullTime) Value() (driver.Value, error) + type Table struct + Constraints []Constraint + Fields []Field + Indexes map[string]Index + Name string + Schema string + Triggers []Trigger + func NewTable(db *sql.DB, schema, tableName string) (*Table, error) + func (t *Table) FieldNames() []string + type Trigger struct + CharacterSetClient string + CollationConnection string + Created NullTime + DatabaseCollation string + Definer string + Event string + SQLMode string + Statement string + Table string + Timing string + Trigger string