Documentation ¶
Index ¶
Constants ¶
View Source
const ( ReColumn = iota + 0 ReTable )
View Source
const ( RenameTable = iota + 1 DropColumns RenameColumns ModifyColumns AddColumns )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddColumn ¶
type AddColumn struct {
// contains filtered or unexported fields
}
type AddNewColumn ¶
type AddNewColumn interface { Column(name string, fieldType *query.DataType, constrains *query.Constrain) *AddColumn Service }
func NewAddColumn ¶
func NewAddColumn(table *Table) AddNewColumn
type Rename ¶
type Rename struct {
// contains filtered or unexported fields
}
type RenameItem ¶
type RenameItem interface { Column(name, newName string, fieldType *query.DataType, constrains *query.Constrain, options ...interface{}) *Rename Table(newName string) *Rename Service }
func NewRename ¶
func NewRename(table *Table) RenameItem
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table struct
func (*Table) Add ¶
func (t *Table) Add() AddNewColumn
func (*Table) Rename ¶
func (t *Table) Rename() RenameItem
type TableService ¶
type TableService interface { Rename() RenameItem Add() AddNewColumn Execute() (sql.Result, error) }
Click to show internal directories.
Click to hide internal directories.