Documentation ¶
Index ¶
- type AlterTableAddColumn
- type AlterTableCreateForeignKey
- type AlterTableCreatePrimaryKey
- type AlterTableCreateUnique
- type AlterTableDropColumn
- type AlterTableDropDefault
- type AlterTableDropForeignKey
- type AlterTableDropPrimaryKey
- type AlterTableDropUnique
- type AlterTableOperation
- type AlterTableSetDefault
- type AlterTableSetNotNull
- type AlterTableSetNull
- type AlterTableSetType
- type AlterTableSuboperation
- type Column
- type CreateIndexOperation
- type CreateTableOperation
- type DropIndexOperation
- type DropTableOperation
- type Operation
- type OperationList
- type RenameColumnOperation
- type RenameTableOperation
- type SQLOperation
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlterTableAddColumn ¶
func (AlterTableAddColumn) AlterTableSQL ¶
func (o AlterTableAddColumn) AlterTableSQL(ato *AlterTableOperation) string
func (AlterTableAddColumn) Dump ¶
func (o AlterTableAddColumn) Dump(buf *bytes.Buffer)
type AlterTableCreateForeignKey ¶
type AlterTableCreateForeignKey struct { Name string Columns []string ForeignTable string ForeignColumns []string }
func (AlterTableCreateForeignKey) AlterTableSQL ¶
func (o AlterTableCreateForeignKey) AlterTableSQL(ato *AlterTableOperation) string
func (AlterTableCreateForeignKey) Dump ¶
func (o AlterTableCreateForeignKey) Dump(buf *bytes.Buffer)
type AlterTableCreatePrimaryKey ¶
type AlterTableCreatePrimaryKey struct {
Columns []string
}
func (AlterTableCreatePrimaryKey) AlterTableSQL ¶
func (o AlterTableCreatePrimaryKey) AlterTableSQL(ato *AlterTableOperation) string
func (AlterTableCreatePrimaryKey) Dump ¶
func (o AlterTableCreatePrimaryKey) Dump(buf *bytes.Buffer)
type AlterTableCreateUnique ¶
func (AlterTableCreateUnique) AlterTableSQL ¶
func (o AlterTableCreateUnique) AlterTableSQL(ato *AlterTableOperation) string
func (AlterTableCreateUnique) Dump ¶
func (o AlterTableCreateUnique) Dump(buf *bytes.Buffer)
type AlterTableDropColumn ¶
type AlterTableDropColumn struct {
Name string
}
func (AlterTableDropColumn) AlterTableSQL ¶
func (o AlterTableDropColumn) AlterTableSQL(ato *AlterTableOperation) string
func (AlterTableDropColumn) Dump ¶
func (o AlterTableDropColumn) Dump(buf *bytes.Buffer)
type AlterTableDropDefault ¶
type AlterTableDropDefault struct {
Name string
}
func (AlterTableDropDefault) AlterTableSQL ¶
func (o AlterTableDropDefault) AlterTableSQL(ato *AlterTableOperation) string
func (AlterTableDropDefault) Dump ¶
func (o AlterTableDropDefault) Dump(buf *bytes.Buffer)
type AlterTableDropForeignKey ¶
type AlterTableDropForeignKey struct {
Name string
}
func (AlterTableDropForeignKey) AlterTableSQL ¶
func (o AlterTableDropForeignKey) AlterTableSQL(ato *AlterTableOperation) string
func (AlterTableDropForeignKey) Dump ¶
func (o AlterTableDropForeignKey) Dump(buf *bytes.Buffer)
type AlterTableDropPrimaryKey ¶
type AlterTableDropPrimaryKey struct { }
func (AlterTableDropPrimaryKey) AlterTableSQL ¶
func (o AlterTableDropPrimaryKey) AlterTableSQL(ato *AlterTableOperation) string
func (AlterTableDropPrimaryKey) Dump ¶
func (o AlterTableDropPrimaryKey) Dump(buf *bytes.Buffer)
type AlterTableDropUnique ¶
type AlterTableDropUnique struct {
Name string
}
func (AlterTableDropUnique) AlterTableSQL ¶
func (o AlterTableDropUnique) AlterTableSQL(ato *AlterTableOperation) string
func (AlterTableDropUnique) Dump ¶
func (o AlterTableDropUnique) Dump(buf *bytes.Buffer)
type AlterTableOperation ¶
type AlterTableOperation struct { Name string Ops []AlterTableSuboperation }
func (AlterTableOperation) Dump ¶
func (o AlterTableOperation) Dump(buf *bytes.Buffer)
type AlterTableSetDefault ¶
func (AlterTableSetDefault) AlterTableSQL ¶
func (o AlterTableSetDefault) AlterTableSQL(ato *AlterTableOperation) string
func (AlterTableSetDefault) Dump ¶
func (o AlterTableSetDefault) Dump(buf *bytes.Buffer)
type AlterTableSetNotNull ¶
type AlterTableSetNotNull struct {
Name string
}
func (AlterTableSetNotNull) AlterTableSQL ¶
func (o AlterTableSetNotNull) AlterTableSQL(ato *AlterTableOperation) string
func (AlterTableSetNotNull) Dump ¶
func (o AlterTableSetNotNull) Dump(buf *bytes.Buffer)
type AlterTableSetNull ¶
type AlterTableSetNull struct {
Name string
}
func (AlterTableSetNull) AlterTableSQL ¶
func (o AlterTableSetNull) AlterTableSQL(ato *AlterTableOperation) string
func (AlterTableSetNull) Dump ¶
func (o AlterTableSetNull) Dump(buf *bytes.Buffer)
type AlterTableSetType ¶
func (AlterTableSetType) AlterTableSQL ¶
func (o AlterTableSetType) AlterTableSQL(ato *AlterTableOperation) string
func (AlterTableSetType) Dump ¶
func (o AlterTableSetType) Dump(buf *bytes.Buffer)
type AlterTableSuboperation ¶
type AlterTableSuboperation interface { AlterTableSQL(ato *AlterTableOperation) string Dump(buf *bytes.Buffer) }
type CreateIndexOperation ¶
func (CreateIndexOperation) Dump ¶
func (o CreateIndexOperation) Dump(buf *bytes.Buffer)
type CreateTableOperation ¶
func (CreateTableOperation) Dump ¶
func (o CreateTableOperation) Dump(buf *bytes.Buffer)
type DropIndexOperation ¶
func (DropIndexOperation) Dump ¶
func (o DropIndexOperation) Dump(buf *bytes.Buffer)
type DropTableOperation ¶
type DropTableOperation struct {
Name string
}
func (DropTableOperation) Dump ¶
func (o DropTableOperation) Dump(buf *bytes.Buffer)
type OperationList ¶
type OperationList []Operation
func (OperationList) Dump ¶
func (o OperationList) Dump(buf *bytes.Buffer)
type RenameColumnOperation ¶
func (RenameColumnOperation) Dump ¶
func (o RenameColumnOperation) Dump(buf *bytes.Buffer)
type RenameTableOperation ¶
func (RenameTableOperation) Dump ¶
func (o RenameTableOperation) Dump(buf *bytes.Buffer)
type SQLOperation ¶
type SQLOperation struct {
SQL string
}
func (SQLOperation) Dump ¶
func (o SQLOperation) Dump(buf *bytes.Buffer)
Click to show internal directories.
Click to hide internal directories.