lib/dynamoid/adapter.rb
# Scans a table. Generally quite slow; try to avoid using scan if at all possible.
#
# @param [String] table the name of the table to write the object to
# @param [Hash] scan_hash a hash of attributes: matching records will be returned by the scan
#
# @since 0.2.0
Scans a table. Generally quite slow; try to avoid using scan if at all possible.
Scans a table . Generally quite slow ; try to avoid using scan if at all possible .
def scan(table, query, opts = {})
      if Dynamoid::Config.partitioning?
        results = benchmark('Scan', table, query) {adapter.scan(table, query, opts)}
        result_for_partition(results)
      else
        benchmark('Scan', table, query) {adapter.scan(table, query, opts)}
      end
    end
def scan ( table , query , opts = { } ) if Dynamoid :: Config . partitioning? results = benchmark ( 'Scan' , table , query ) { adapter . scan ( table , query , opts ) } result_for_partition ( results ) else benchmark ( 'Scan' , table , query ) { adapter . scan ( table , query , opts ) } end end
Scans a table.
Scans a table .
table
<not_specific>
query
<not_specific>
opts
<not_specific>
<not_specific>
scan_hash a hash of attributes: matching records will be returned by the scan
scan_hash a hash of attributes : matching records will be returned by the scan
since
None