Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
// Name is the name of the index in postgres
Name string `json:"name"`
}
type Schema ¶
type Schema struct {
// Name is the name of the schema
Name string `json:"name"`
// Tables is a map of virtual table name -> table mapping
Tables map[string]Table `json:"tables"`
}
func (*Schema) RemoveTable ¶
func (*Schema) RenameTable ¶
type Table ¶
type Table struct {
// OID for the table
OID string `json:"oid"`
// Name is the actual name in postgres
Name string `json:"name"`
// Optional comment for the table
Comment string `json:"comment"`
// Columns is a map of virtual column name -> column mapping
Columns map[string]Column `json:"columns"`
// Indexes is a map of the indexes defined on the table
Indexes map[string]Index `json:"indexes"`
}
func (*Table) RemoveColumn ¶
func (*Table) RenameColumn ¶
Click to show internal directories.
Click to hide internal directories.