-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalue.go
More file actions
22 lines (18 loc) · 750 Bytes
/
value.go
File metadata and controls
22 lines (18 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package filterbuilder
// Null indicates the column should evaluate for NULL
type Null bool
// Value struct
type Value struct {
Src any `json:"src,omitempty"` // Struct field to get value or the value itself
Raw bool `json:"raw,omitempty"` // When true, the Src was set to a raw value. When false, the value is retrieved from the struct field in the Data.
}
// Pair struct
type Pair struct {
Column string `json:"column,omitempty"` // Database table column
Value Value `json:"value,omitempty"` // Struct field to get value or the value itself
}
// MultiFieldPair struct
type MultiFieldPair struct {
Column string `json:"column,omitempty"` // Database table column
Value []Value `json:"value,omitempty"` // Struct field to get value
}