-
Notifications
You must be signed in to change notification settings - Fork 1
/
constant_gen.go
executable file
·47 lines (40 loc) · 1.31 KB
/
constant_gen.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
// Code generated by volcago. DO NOT EDIT.
// generated version: (devel)
package model
import "golang.org/x/xerrors"
// OpType - operator type
type OpType = string
const (
OpTypeEqual OpType = "=="
OpTypeNotEqual OpType = "!="
OpTypeLessThan OpType = "<"
OpTypeLessThanOrEqual OpType = "<="
OpTypeGreaterThan OpType = ">"
OpTypeGreaterThanOrEqual OpType = ">="
OpTypeIn OpType = "in"
OpTypeNotIn OpType = "not-in"
OpTypeArrayContains OpType = "array-contains"
OpTypeArrayContainsAny OpType = "array-contains-any"
)
// FilterType - extra indexes filters type
type FilterType = int
const (
FilterTypeAdd FilterType = 1 << iota
FilterTypeAddPrefix
FilterTypeAddSuffix
FilterTypeAddBiunigrams
FilterTypeAddSomething
)
var (
ErrAlreadyExists = xerrors.New("already exists")
ErrAlreadyDeleted = xerrors.New("already been deleted")
ErrNotFound = xerrors.New("not found")
ErrLogicallyDeletedData = xerrors.New("logically deleted data")
ErrUniqueConstraint = xerrors.New("unique constraint error")
ErrNotAvailableCG = xerrors.New("not available in collection groups")
ErrVersionConflict = xerrors.New("version conflict")
)
type (
UniqueMiddlewareKey struct{}
transactionInProgressKey struct{}
)