-
Notifications
You must be signed in to change notification settings - Fork 35
/
init.go
59 lines (57 loc) · 2 KB
/
init.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package gorma
// GormaDesign is the root definition for Gorma
var GormaDesign *StorageGroupDefinition
const (
// StorageGroup is the constant string used as the index in the
// GormaConstructs map
StorageGroup = "storagegroup"
// MySQL is the StorageType for MySQL databases
MySQL RelationalStorageType = "mysql"
// Postgres is the StorageType for Postgres
Postgres RelationalStorageType = "postgres"
// SQLite3 is the StorageType for SQLite3 databases
SQLite3 RelationalStorageType = "sqlite3"
// None is For tests
None RelationalStorageType = ""
// Boolean is a bool field type
Boolean FieldType = "bool"
// Integer is an integer field type
Integer FieldType = "integer"
// BigInteger is a large integer field type
BigInteger FieldType = "biginteger"
// AutoInteger is not implemented
AutoInteger FieldType = "auto_integer"
// AutoBigInteger is not implemented
AutoBigInteger FieldType = "auto_biginteger"
// Decimal is a float field type
Decimal FieldType = "decimal"
// BigDecimal is a large float field type
BigDecimal FieldType = "bigdecimal"
// String is a varchar field type
String FieldType = "string"
// Text is a large string field type
Text FieldType = "text"
// UUID is not implemented yet
UUID FieldType = "uuid"
// Timestamp is a date/time field in the database
Timestamp FieldType = "timestamp"
// NullableTimestamp is a timestamp that may not be
// populated. Fields with no value will be null in the database
NullableTimestamp FieldType = "nulltimestamp"
// NotFound is used internally
NotFound FieldType = "notfound"
// HasOne is used internally
HasOne FieldType = "hasone"
// HasOneKey is used internally
HasOneKey FieldType = "hasonekey"
// HasMany is used internally
HasMany FieldType = "hasmany"
// HasManyKey is used internally
HasManyKey FieldType = "hasmanykey"
// Many2Many is used internally
Many2Many FieldType = "many2many"
// Many2ManyKey is used internally
Many2ManyKey FieldType = "many2manykey"
// BelongsTo is used internally
BelongsTo FieldType = "belongsto"
)