lib/ddbcli/cli/evaluate.rb in ddbcli-0.2.5 vs lib/ddbcli/cli/evaluate.rb in ddbcli-0.2.6
- old
+ new
@@ -32,10 +32,10 @@
start_time = Time.new
out = driver.execute(query, opts.merge(:inline => (tok != '\G')))
elapsed = Time.now - start_time
if out.kind_of?(DynamoDB::Driver::Rownum)
- print_rownum(out, :time => elapsed)
+ print_rownum(out, opts.merge(:time => elapsed))
elsif out.kind_of?(String)
puts out
elsif out
opts = opts.merge(:inline => (tok != '\G'), :time => elapsed)
print_json(out, $stdout, opts)