diff options
author | Mitch Garnaat <mitch@garnaat.com> | 2012-02-23 12:22:11 -0800 |
---|---|---|
committer | Mitch Garnaat <mitch@garnaat.com> | 2012-02-23 12:22:11 -0800 |
commit | e19270e7bb28a462fc92a7badce6cdad47fd95b7 (patch) | |
tree | ea6af0f45fce5850ed3ca401e4314c653d516ed4 /boto/dynamodb/table.py | |
parent | e3920747c251893b95a3dd9fb5c8f2741f4e29ea (diff) | |
parent | 40c3ae772b021649c7775dbe7024ceb6e081dcc5 (diff) | |
download | boto-requests_refactor.tar.gz |
Merging from master, resolving conflict in s3/key.py. Considerably more work is required here.requests_refactor
Diffstat (limited to 'boto/dynamodb/table.py')
-rw-r--r-- | boto/dynamodb/table.py | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/boto/dynamodb/table.py b/boto/dynamodb/table.py index 152c2cb8..7c8e5ea8 100644 --- a/boto/dynamodb/table.py +++ b/boto/dynamodb/table.py @@ -307,9 +307,26 @@ class Table(object): and expensive operation, and should be avoided if at all possible. - :type scan_filter: dict - :param scan_filter: A Python version of the - ScanFilter data structure. + :type scan_filter: A list of tuples + :param scan_filter: A list of tuples where each tuple consists + of an attribute name, a comparison operator, and either + a scalar or tuple consisting of the values to compare + the attribute to. Valid comparison operators are shown below + along with the expected number of values that should be supplied. + + * EQ - equal (1) + * NE - not equal (1) + * LE - less than or equal (1) + * LT - less than (1) + * GE - greater than or equal (1) + * GT - greater than (1) + * NOT_NULL - attribute exists (0, use None) + * NULL - attribute does not exist (0, use None) + * CONTAINS - substring or value in list (1) + * NOT_CONTAINS - absence of substring or value in list (1) + * BEGINS_WITH - substring prefix (1) + * IN - exact match in list (N) + * BETWEEN - >= first value, <= second value (2) :type attributes_to_get: list :param attributes_to_get: A list of attribute names. |