Koudai Aono
a61124f774
support to create dynamodb resource by cloudformation ( #2219 )
...
* support to create dynamodb resource by cloudformation
2019-05-25 10:16:33 +01:00
Ber Zoidberg
1088c421d2
#2212 add support for delete on update_with_attribute_updates ( #2213 )
...
* add support for delete on update_with_attribute_updates
2019-05-22 10:47:02 +01:00
cm-iwata
9bf8fd3417
fix #2011 ( #2012 )
...
add support for Scan method using LSI or GSI
2019-05-21 17:45:30 +01:00
Xu Liu
80c11d676c
Use cast_value when comparing DynamoType
2019-04-23 11:53:00 -04:00
Tomoya Iwata
431269bcd0
fix #2161
...
mock_dynamodb2 query fails when using GSI with range key if target table has record that have no range key attribute
2019-04-19 12:23:06 +09:00
Gary Donovan
0b15bb13b6
Make EQ conditions work reliably in DynamoDB.
...
The AWS API represents a set object as a list of values. Internally
moto also represents a set as a list. This means that when we do value
comparisons, the order of the values can cause a set equality test to
fail.
2019-01-10 21:39:12 +11:00
Karl Gutwin
46c0f8915f
Fix flake8 failures (boo)
2018-11-09 09:32:19 -05:00
Karl Gutwin
9d190aa04e
Tweak functionality and add tests
2018-11-08 13:22:24 -05:00
Karl Gutwin
ff6a57f443
Fix flake8 failures
2018-11-08 11:08:24 -05:00
Karl Gutwin
0f6086f708
Finalize implementation of DynamoDB Streams
2018-11-08 10:54:54 -05:00
Karl Gutwin
519899f74f
Much of the way towards complete DynamoDB Streams implementation
2018-11-07 17:10:00 -05:00
Karl Gutwin
0b57ffe26a
Add StreamSpecification to dynamodb2 package
2018-11-07 15:03:25 -05:00
Gary Donovan
81f96c4ceb
Don't compare a dict_keys object to a list, since it is always False
2018-10-17 11:08:44 +11:00
Steve Pulec
a22cb410b0
Merge pull request #1872 from uncovertruth/fix/wrong_type_if_exists
...
Fix wrong type if exists
2018-10-15 00:38:08 -04:00
Kosei Kitahara
cf157287e7
Fix wrong type if exists
2018-10-12 16:08:05 +09:00
Kosei Kitahara
2c15d71c2c
Allow spaces to if_not_exists
2018-10-11 18:21:53 +09:00
Gary Donovan
802402bdba
Tweak comparison to treat NULL/NOT_NULL correctly. ( #1709 )
...
The AWS documentation says that a ComparisonOperator of NULL means
the attribute should not exist, whereas NOT_NULL means that the
attribute should exist. It explicitly says that an attribute with a
value of NULL is considered to exist, which contradicts our previous
implementation. This affects both put_item and get_item in dynamodb2.
https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Condition.html
2018-07-13 10:11:10 +01:00
William Richard
8b7875ec02
Ensure that table.global_indexes and table.indexes are lists
2018-06-06 12:56:19 -04:00
Mau Zsófia Ábrahám
2e75d0219c
Support dynamodb2 nested map creation to mirror actual db
2018-05-14 14:02:14 +02:00
Andrew Jefferson
bf136584a9
Put projection after filter so that filters can act on fields that ar… ( #1470 )
...
* Put projection after filter so that filters can act on fields that are not projected
* fixing whitespace
2018-03-21 09:02:31 -07:00
Terry Cain
a1f2ba21ee
Adds if_not_exists function to DynamoDB Update Expression
...
Fixes #1358
2017-11-26 22:29:23 +00:00
Terry Cain
2609f6cd3a
Added support for dynamo update_item on nested dicts ( #1345 )
2017-11-17 08:49:59 +00:00
Eric Reinecke
64fb0207e2
dynamodb2 was evaluating ProjectionExpression on the wrong local result set
2017-11-10 21:57:16 -08:00
Eric Reinecke
06492026c3
dynamodb2 items are copied when using ProjectionExpression to avoid mutating originals
2017-11-10 21:35:01 -08:00
Terry Cain
884fc6f260
Adds FilterExpression to dynamodb.query ( #1326 )
...
* Added FilterExpression for dynamodb.query
* flake8
* Fixes using mutable default argument values
2017-11-08 22:53:31 +00:00
Terry Cain
ab767416fe
Completed DynamoDBv2 endpoints
2017-10-29 16:06:09 +00:00
Terry Cain
c86bece382
Added FilterExpression to dynamodb scan
2017-10-07 21:57:14 +01:00
Chris Keogh
d0f38407a1
update expression attribute test
2017-09-22 15:52:32 +12:00
Chris Keogh
87d7cacda6
Merge branch 'master' of https://github.com/spulec/moto
2017-09-22 15:44:44 +12:00
Chris Keogh
037b357029
add basic projection expressions
2017-09-22 13:12:24 +12:00
Brian Rower
c1c592609a
Fix python 2.7 issue
2017-09-12 23:30:15 -07:00
Brian Rower
6affc7a4ec
Add basic support for the add operation in an update operation
...
Add basic delete functionality
Improve testing coverage and make behave more like actual dynamo on errors
Lint fix
2017-09-12 21:42:29 -07:00
Jack Danger
d7e64fc927
Merge pull request #1127 from brianrower/feature/add-string-set
...
Dynamodb2 - Allow doing an ADD update_item of a string set
2017-09-11 12:33:41 -07:00
Brian Rower
386ac94abe
Allow doing an ADD update of a string set
...
Fix test
2017-09-11 12:07:34 -07:00
sorensolari
9070b1bf66
fix uppercase only issue in update_expression #1091
2017-08-27 13:57:16 -06:00
Jack Danger
5e9c51d839
Merge pull request #790 from tideline/master
...
Fixes for dynamodb2 mocking
2017-07-06 22:06:08 -07:00
Peter Gorniak
a0471b0407
add comment about splitting update expression by operator keywords
2017-06-15 15:34:58 -07:00
Greg Sterin
be07fbda52
Support Expected in dynamoDB updateItem
2017-06-09 17:34:29 -07:00
Peter Gorniak
91657a537b
Merge remote-tracking branch 'spulec/master'
2017-06-02 13:38:36 -07:00
Peter Gorniak
5eb866146a
add assert to catch odd numbers in operator/value parsing
2017-06-02 13:19:45 -07:00
Steve Pulec
15b811901b
Merge pull request #925 from JackDanger/idempotent-dynamodb2-deletes
...
Idempotent Dynamodb2 deletes
2017-05-10 22:07:12 -04:00
Steve Pulec
0adebeed24
Merge #913 .
2017-05-10 21:58:42 -04:00
Jack Danger Canty
8e3d46fb05
Deleting from an unknown table raises error
...
If the table exists then we deletes are idempotent
2017-05-08 17:25:59 -10:00
Steve Pulec
6d422d1f37
Add BaseModel to all models.
2017-03-11 23:41:12 -05:00
Steve Pulec
f37bad0e00
Lints.
2017-02-23 21:37:43 -05:00
Steve Pulec
ba7223f046
Fix issue for returning dynamodb floats. Closes #812 .
2017-02-08 21:06:05 -05:00
Peter Gorniak
d4a31e5e50
unit tests did not catch this, but this will not work under python 2.6
2016-12-08 14:34:21 -08:00
Peter Gorniak
3c128fdb51
correct looping through update actions, value stripping, hash key regex
2016-12-07 11:47:48 -08:00
Peter Gorniak
390bef7752
fake change to force push because github was broken
2016-12-06 16:57:36 -08:00
Peter Gorniak
98a39cf4b5
account for keys potentially being substrings of other keys (e.g. #c1 and #c10)
2016-12-06 12:14:57 -08:00