lib/dynamoid/adapter.rb in dynamoid-3.3.0 vs lib/dynamoid/adapter.rb in dynamoid-3.4.0
- old
+ new
@@ -122,11 +122,15 @@
benchmark('Scan', table, query) { adapter.scan(table, query, opts) }
end
def create_table(table_name, key, options = {})
unless tables.include?(table_name)
- benchmark('Create Table') { adapter.create_table(table_name, key, options) }
+ result = nil
+ benchmark('Create Table') { result = adapter.create_table(table_name, key, options) }
tables << table_name
+ result
+ else
+ false
end
end
# @since 0.2.0
def delete_table(table_name, options = {})