Documentation ¶
Index ¶
- func NewColumn(table, fieldName string, con *sqlx.DB) contract.Column
- type Column
- func (c *Column) After(name string) contract.Column
- func (c *Column) Autoincrement() contract.Column
- func (c *Column) Change() contract.Column
- func (c *Column) Default(value string) contract.Column
- func (c *Column) Drop() contract.Column
- func (c *Column) First() contract.Column
- func (c *Column) GetName() string
- func (c *Column) GetSQL() string
- func (c *Column) GetUniqueKeyName() string
- func (c *Column) HasUniqueKey() bool
- func (c *Column) IsPrimary() bool
- func (c *Column) IsUnique() bool
- func (c *Column) IsWaitingChange() bool
- func (c *Column) IsWaitingDrop() bool
- func (c *Column) IsWaitingRename() bool
- func (c *Column) NeedDropUniqueKey() bool
- func (c *Column) NeedUniqueKey() bool
- func (c *Column) NotAutoincrement() contract.Column
- func (c *Column) NotNull() contract.Column
- func (c *Column) NotUnique() contract.Column
- func (c *Column) Nullable() contract.Column
- func (c *Column) Primary() contract.Column
- func (c *Column) Rename(name string) contract.Column
- func (c *Column) Type(fieldType string) contract.Column
- func (c *Column) Unique() contract.Column
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Column ¶
type Column struct {
// contains filtered or unexported fields
}
func (*Column) Autoincrement ¶
func (*Column) GetUniqueKeyName ¶
func (*Column) HasUniqueKey ¶
func (*Column) IsWaitingChange ¶
func (*Column) IsWaitingDrop ¶
func (*Column) IsWaitingRename ¶
func (*Column) NeedDropUniqueKey ¶
func (*Column) NeedUniqueKey ¶
func (*Column) NotAutoincrement ¶
Click to show internal directories.
Click to hide internal directories.