contract

package
v1.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 1 Imported by: 0

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()
}

type UniqueKey

type UniqueKey interface {
	SetKeyName(string) UniqueKey
	GenerateKeyName() UniqueKey
	Drop() UniqueKey
	GetSQL() string
	Exec(*sqlx.DB) error
	MustExec(*sqlx.DB)
	GetName() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL