Documentation ¶
Index ¶
- func ChangeTable(name string, con *sqlx.DB) contract.Table
- func DropTable(name string, con *sqlx.DB) contract.Table
- func NewTable(name string, con *sqlx.DB) contract.Table
- func RenameTable(oldName, newName string, con *sqlx.DB) contract.Table
- type Table
- func (t *Table) Column(name string) contract.Column
- func (t *Table) DropColumn(name string) contract.Column
- func (t *Table) DropForeignKey(name string) contract.Table
- func (t *Table) Exec() error
- func (t *Table) ForeignKey(Column string) contract.ForeignKey
- func (t *Table) GetSQL() string
- func (t *Table) Integer(name string) contract.Column
- func (t *Table) MustExec()
- func (t *Table) PrimaryKey(Column string) contract.Column
- func (t *Table) RenameColumn(oldName, newName string) contract.Column
- func (t *Table) String(name string, length int) contract.Column
- func (t *Table) WithTimestamps() contract.Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func (*Table) ForeignKey ¶
func (t *Table) ForeignKey(Column string) contract.ForeignKey
func (*Table) PrimaryKey ¶
Functions for keys
func (*Table) WithTimestamps ¶
Click to show internal directories.
Click to hide internal directories.