lib/ddbcli/ddb-driver.rb in ddbcli-0.3.3 vs lib/ddbcli/ddb-driver.rb in ddbcli-0.3.4
- old
+ new
@@ -544,10 +544,13 @@
@client.query('CreateTable', req_hash)
nil
end
def do_drop(parsed)
- @client.query('DeleteTable', 'TableName' => parsed.table)
+ parsed.tables.each do |table_name|
+ @client.query('DeleteTable', 'TableName' => table_name)
+ end
+
nil
end
def do_describe(parsed)
(@client.query('DescribeTable', 'TableName' => parsed.table) || {}).fetch('Table', {})