Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnList ¶
type ColumnList struct {
// contains filtered or unexported fields
}
func (*ColumnList) All ¶
func (cd *ColumnList) All() []*Column
type Constraint ¶
type Constraint struct {
Table *Table
Tree tree.ConstraintTableDef
Name string
}
func (*Constraint) Equal ¶ added in v1.1.0
func (c *Constraint) Equal(n *Constraint) bool
type ConstraintList ¶
type ConstraintList struct {
// contains filtered or unexported fields
}
func (*ConstraintList) All ¶
func (il *ConstraintList) All() []*Constraint
func (*ConstraintList) Find ¶
func (il *ConstraintList) Find(name string) (*Constraint, bool)
type Model ¶
type Model struct {
Tables *TableList
}
Model is the declarative representation of a sql schema
type Table ¶
type Table struct {
Name string
Tree *tree.CreateTable
Columns *ColumnList
Indexes *IndexList
Constraints *ConstraintList
}
Table represents the declarative state of a `CREATE TABLE` statement
Click to show internal directories.
Click to hide internal directories.