dql.engine module¶
Execution engine
-
class
dql.engine.
Engine
(connection=None)[source]¶ Bases:
object
DQL execution engine
Parameters: - connection :
DynamoDBConnection
, optional If not present, you will need to call
Engine.connect()
Attributes: - caution_callback : callable, optional
Called to prompt user when a potentially dangerous action is about to occur.
-
describe
(tablename: str, refresh: bool = False, metrics: bool = False, require: bool = False) → Optional[dql.models.TableMeta][source]¶ Get the
TableMeta
for a table
-
execute
(commands, pretty_format=False)[source]¶ Parse and run a DQL string
Parameters: - commands : str
The DQL command string
- pretty_format : bool
Pretty-format the return value. (e.g. 4 -> ‘Updated 4 items’)
- connection :
-
class
dql.engine.
FragmentEngine
(connection=None)[source]¶ Bases:
dql.engine.Engine
A DQL execution engine that can handle query fragments