lib/dynamoid/adapter/aws_sdk.rb
# Scan the DynamoDB table. This is usually a very slow operation as it naively filters all data on
# the DynamoDB servers.
#
# @param [String] table_name the name of the table
# @param [Hash] scan_hash a hash of attributes: matching records will be returned by the scan
#
# @return [Array] an array of all matching items
#
# @since 0.2.0
Scan the DynamoDB table. This is usually a very slow operation as it naively filters all data on
the DynamoDB servers.
Scan the DynamoDB table . This is usually a very slow operation as it naively filters all data on the DynamoDB servers .
def scan(table_name, scan_hash, select_opts)
        table = get_table(table_name)
        results = []
        table.items.where(scan_hash).select(select_opts) do |data|
          results << data.attributes.symbolize_keys!
        end
        results
      end
def scan ( table_name , scan_hash , select_opts ) table = get_table ( table_name ) results = [ ] table . items . where ( scan_hash ) . select ( select_opts ) do | data | results << data . attributes . symbolize_keys! end results end
Scan the DynamoDB table.
Scan the DynamoDB table .
an array of all matching items
an array of all matching items
Array
table_name
<not_specific>
scan_hash
<not_specific>
select_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