Releases: altitudenetworks/dynamoquery
Releases · altitudenetworks/dynamoquery
2.4.0
Added
DynamoTable.clear_records
method #38
Fixed
DynamoTable
class is no longer abstractDictClass
sanitization of initial data happens in the end on all values, even non-setDynamoTable
normalizes records in singular methodsDynamoTable.batch_delete
returns correct record typeDynamoTable.clear_table
respectssort_key
/sort_key_prefix
arguments even ifpartition_key
is None (full scan) #38
2.3.0
2.2.0
Added
DynamoRecord.sanitize
method for all values clean upDynamoRecord.sanitize_key
method for value clean upDynamoRecord.get_key_{key}
custom methods supportDynamoRecord.sanitize_key_{key}
custom methods support #34
Fixed
DynamoRecord
attribute default values are now immutableDynamoRecord
uppercased class attributes no longer affect fields #34
2.1.0
Added
DynamoTable.batch_get_records
that works with iteratorsDynamoTable.batch_upsert_records
that works with iteratorsDynamoTable.batch_delete_records
that works with iteratorsDynamoTable.dynamo_query_class
attribute that allows to use customDynamoQuery
DynamoTable.max_batch_size
property for easier subclassing #28DynamoRecord
UserDict class for class-basedrecord_type
argument toDataClass
init that accepts anyUserDict
-based classesDynamoTable.get_table_status
method to get current table statusDynamoAutoscaler
class #30DataTable.copy
method #31
Changed
DynamoTable.clear_table
uses generators to reduce memory usage #28DataTable.get_record
returns arecord_type
object if it was providedDataTable.get_records
yieldsrecord_type
objects if it was providedDataTable.add_record
processes arecord_type
object if it was providedDynamoTable.create_table
setsProvisionedThroughput
argumentsDynamoTable.create_table
handles intermediate table statesDynamoTable.delete_table
handles intermediate table statesDynamoTable.get_partition_key
method is not longer abstractDynamoTable.get_sort_key
method is not longer abstract #30DataTable.keys
returns an iterator (not compatible with a regular dict)DataTable.values
returns an iterator (not compatible with a regular dict)DataTable.items
returns an iterator (not compatible with a regular dict)DataTable.__iter__
iterates over records (used to be keys) and fails for non-normalized tablesDynamoQuery.execute_dict
method'sdata
argument made optionalDynamoQuery.execute
method'sdata_table
argument acceptsIterable[Dict]
a well as aDataTable
#31
Fixed
2.0.0
1.2.0
1.1.0
Changed
partition_key
argument is mandatory inDynamoTable.query
Fixed
DynamoTable.clear_table
error ifpartition_key_prefix
is used- On fail, requests are repeated 5 times (was 3)
- Check for valid operators in
DynamoTable.query
operation
1.0.1
Fixed
- Use normalized record for
upsert
andbatch_upsert
1.0.0
Added
DynamoTable.wait_until_exists
methodDynamoTable.wait_until_not_exists
method
Fixed
dt_created
is set to utcnow if it is null
0.0.7
Fixed
- Fixed upsert of normalized records