Model metadata and metaclass objects
Bases: type
Metaclass for Model objects
Merges model metadata, sets the meta_ attribute, and performs validation checks.
Bases: object
Container for model metadata
Parameters: | model : Model |
---|
Attributes
abstract | Getter for abstract |
namespace | list() -> new empty list |
Create all Dynamo tables for this model
Parameters: | connection : DynamoDBConnection tablenames : list, optional
test : bool, optional
wait : bool, optional
throughput : dict, optional
|
---|---|
Returns: | table : str
|
Drop all Dynamo tables for this model
Parameters: | connection : DynamoDBConnection tablenames : list, optional
test : bool, optional
wait : bool, optional
|
---|---|
Returns: | table : str
|
Get a unique ordering from constraint fields
Parameters: | eq_fields : list
fields : list
|
---|---|
Returns: | ordering : Ordering |
Raises: | exc : TypeError
|
Bases: object
A way that the models are ordered
This will be a combination of a hash key and a range key. It may be the primary key, a local secondary index, or a global secondary index.