Skip to content

Commit ca867f5

Browse files
chanbakjsdkenshaw
authored andcommitted
Add xo options
1 parent 0342879 commit ca867f5

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

xo/xo.gunk

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package xo
2+
3+
// IndexType is the generated index type for the corresponding column.
4+
type IndexType int
5+
6+
const (
7+
Index IndexType = iota
8+
Unique
9+
)
10+
11+
// Manual is the manual option to mark the struct without an autogenerated
12+
// primary key field.
13+
type Manual bool
14+
15+
// Ignore skips the corresponding field or struct type from inclusion from
16+
// marshalling.
17+
type Ignore bool
18+
19+
// Embed is the embed option to embed the type with JSON instead of a separate
20+
// table.
21+
//
22+
// If Embed is an option on a struct field, that column will be embedded as
23+
// well, regardless of the value of the Embed option on the corresponding
24+
// struct.
25+
type Embed bool
26+
27+
// Default is the default value option for the corresponding field.
28+
type Default string
29+

0 commit comments

Comments
 (0)