dql.cli module¶
Interative DQL client
-
class
dql.cli.
DQLClient
(completekey='tab', stdin=None, stdout=None)[source]¶ Bases:
cmd.Cmd
Interactive commandline interface.
Attributes: - running : bool
True while session is active, False after quitting
- engine :
dql.engine.FragmentEngine
-
caution_callback
(action)[source]¶ Prompt user for manual continue when doing write operation on all items in a table
-
do_local
(host='localhost', port=8000)[source]¶ Connect to a local DynamoDB instance. Use ‘local off’ to disable.
> local > local host=localhost port=8001 > local off
-
do_throttle
(*_args)[source]¶ Set the allowed consumed throughput for DQL.
# Set the total allowed throughput across all tables > throttle 1000 100 # Set the default allowed throughput per-table/index > throttle default 40% 20% # Set the allowed throughput on a table > throttle mytable 10 10 # Set the allowed throughput on a global index > throttle mytable myindex 40 6
see also: unthrottle
-
do_unthrottle
(*args)[source]¶ Remove the throughput limits for DQL that were set with ‘throttle’
# Remove all limits > unthrottle # Remove the limit on total allowed throughput > unthrottle total # Remove the default limit > unthrottle default # Remove the limit on a table > unthrottle mytable # Remove the limit on a global index > unthrottle mytable myindex
-
emptyline
()[source]¶ Called when an empty line is entered in response to the prompt.
If this method is not overridden, it repeats the last nonempty command entered.
-
initialize
(region: str = 'us-west-1', host: str = None, port: int = 8000, config_dir: Optional[str] = None, session: Optional[Any] = None) → None[source]¶ Set up the repl for execution.