Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column interface { Type(string) Column Nullable() Column NotNull() Column Autoincrement() Column NotAutoincrement() Column Default(string) Column Primary() Column Unique() Column NotUnique() Column Drop() Column Change() Column First() Column After(string) Column Rename(string) Column GetSQL() string GetName() string GetUniqueKeyName() string IsPrimary() bool IsUnique() bool HasUniqueKey() bool NeedUniqueKey() bool NeedDropUniqueKey() bool IsWaitingDrop() bool IsWaitingRename() bool IsWaitingChange() bool }
type ForeignKey ¶
type ForeignKey interface { Reference(string) ForeignKey On(string) ForeignKey OnUpdate(string) ForeignKey OnDelete(string) ForeignKey Drop() ForeignKey SetKeyName(string) ForeignKey GenerateKeyName() ForeignKey GetSQL() string GetName() string ForDrop() bool }
type Table ¶
type Table interface { Column(string) Column String(string, int) Column Integer(string) Column WithTimestamps() Table RenameColumn(string, string) Column DropColumn(string) Column PrimaryKey(string) Column ForeignKey(string) ForeignKey DropForeignKey(string) Table GetSQL() string Exec() error MustExec() }
Click to show internal directories.
Click to hide internal directories.