-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.go
31 lines (26 loc) · 796 Bytes
/
index.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package index
//go:generate stringer -type=ForeignKeyOption
type ForeignKeyOption int
const (
ForeignKeyDeleteRestrict ForeignKeyOption = iota
ForeignKeyDeleteCascade
ForeignKeyDeleteSetNull
ForeignKeyDeleteSetDefault
ForeignKeyDeleteNoAction
ForeignKeyUpdateRestrict
ForeignKeyUpdateCascade
ForeignKeyUpdateSetNull
ForeignKeyUpdateSetDefault
ForeignKeyUpdateNoAction
None
)
var ForeignKeyOptionConstMax = None
type Methods interface {
PrimaryKey(columns ...interface{}) Definition
Unique(columns ...interface{}) Definition
Complex(columns ...interface{}) Definition
ForeignKey(myColumn interface{}, foreignColumn interface{}, options ...ForeignKeyOption) Definition
Spatial(columns ...interface{}) Definition
Fulltext(columns ...string) Definition
}
type Definition string