comparison env/lib/python3.9/site-packages/boto/dynamodb2/types.py @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4f3585e2f14b
1 # Shadow the DynamoDB v1 bits.
2 # This way, no end user should have to cross-import between versions & we
3 # reserve the namespace to extend v2 if it's ever needed.
4 from boto.dynamodb.types import NonBooleanDynamizer, Dynamizer
5
6
7 # Some constants for our use.
8 STRING = 'S'
9 NUMBER = 'N'
10 BINARY = 'B'
11 STRING_SET = 'SS'
12 NUMBER_SET = 'NS'
13 BINARY_SET = 'BS'
14 NULL = 'NULL'
15 BOOLEAN = 'BOOL'
16 MAP = 'M'
17 LIST = 'L'
18
19 QUERY_OPERATORS = {
20 'eq': 'EQ',
21 'lte': 'LE',
22 'lt': 'LT',
23 'gte': 'GE',
24 'gt': 'GT',
25 'beginswith': 'BEGINS_WITH',
26 'between': 'BETWEEN',
27 }
28
29 FILTER_OPERATORS = {
30 'eq': 'EQ',
31 'ne': 'NE',
32 'lte': 'LE',
33 'lt': 'LT',
34 'gte': 'GE',
35 'gt': 'GT',
36 # FIXME: Is this necessary? i.e. ``whatever__null=False``
37 'nnull': 'NOT_NULL',
38 'null': 'NULL',
39 'contains': 'CONTAINS',
40 'ncontains': 'NOT_CONTAINS',
41 'beginswith': 'BEGINS_WITH',
42 'in': 'IN',
43 'between': 'BETWEEN',
44 }