-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoperator.go
36 lines (29 loc) · 1.33 KB
/
operator.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
package dynamoql
// took from: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html
// ConditionalOperator Used to compare an operand against a range of values or an enumerated list of values.
type ConditionalOperator string
// LogicalOperator Used to perform logical evaluations (AND, OR & NOT).
type LogicalOperator string
// Ordering Used to set the traversing order while iterating items in a DynamoDB table.
type Ordering string
const (
Equals ConditionalOperator = "="
GreaterThan ConditionalOperator = ">"
GreaterOrEqualThan ConditionalOperator = ">="
LessThan ConditionalOperator = "<"
LessOrEqualThan ConditionalOperator = "<="
GreaterOrLess ConditionalOperator = "<>"
In ConditionalOperator = "IN"
Between ConditionalOperator = "BETWEEN"
Contains ConditionalOperator = "contains"
BeginsWith ConditionalOperator = "begins_with"
AttributeType ConditionalOperator = "attribute_type"
AttributeExists ConditionalOperator = "attribute_exists"
AttributeNotExists ConditionalOperator = "attribute_not_exists"
Size ConditionalOperator = "size"
And LogicalOperator = "AND"
Or LogicalOperator = "OR"
not LogicalOperator = "NOT"
Ascend Ordering = "ASC"
Descend Ordering = "DESC"
)