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
(self, action)[source]¶ Prompt user for manual continue when doing write operation on all items in a table
-
do_local
(self, arglist)[source]¶ Connect to a local DynamoDB instance. Use ‘local off’ to disable.
> local > local host=localhost port=8001 > local off
-
do_throttle
(self, arglist)[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
(self, arglist)[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