vendor/bundle/ruby/1.8/gems/aws-2.5.6/lib/sdb/active_sdb.rb
#
# See select(), original find with QUERY syntax is deprecated so now find and select are synonyms.
#
See select(), original find with QUERY syntax is deprecated so now find and select are synonyms.
See select () original find with QUERY syntax is deprecated so now find and select are synonyms .
def find(*args)
                      options = args.last.is_a?(Hash) ? args.pop : {}
                    case args.first
                        when nil then
                            raise "Invalid parameters passed to find: nil."
                        when :all then
                            sql_select(options)[:items]
                        when :first then
                            sql_select(options.merge(:limit => 1))[:items].first
                        when :count then
                            res = sql_select(options.merge(:count => true))[:count]
                            res
                        else
                            res = select_from_ids(args, options)
                            return res[:single] if res[:single]
                            return res[:items]
                    end
                end
def find ( * args ) options = args . last . is_a? ( Hash ) ? args . pop : { } case args . first when nil then raise "Invalid parameters passed to find: nil." when :all then sql_select ( options ) [ :items ] when :first then sql_select ( options . merge ( :limit => 1 ) ) [ :items ] . first when :count then res = sql_select ( options . merge ( :count => true ) ) [ :count ] res else res = select_from_ids ( args , options ) return res [ :single ] if res [ :single ] return res [ :items ] end end
See select(), original find with QUERY syntax is deprecated so now find and select are synonyms.
See select () original find with QUERY syntax is deprecated so now find and select are synonyms .
args