appoxy-aws 1.11.28 → 1.11.29
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sdb/active_sdb.rb +14 -26
- metadata +2 -2
data/lib/sdb/active_sdb.rb
CHANGED
@@ -258,19 +258,19 @@ module RightAws
|
|
258
258
|
# See select(), original find with QUERY syntax is deprecated so now find and select are synonyms.
|
259
259
|
#
|
260
260
|
def find(*args)
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
261
|
+
options = args.last.is_a?(Hash) ? args.pop : {}
|
262
|
+
# puts 'first=' + args.first.to_s
|
263
|
+
case args.first
|
264
|
+
when :all then
|
265
|
+
sql_select(options)
|
266
|
+
when :first then
|
267
|
+
sql_select(options.merge(:limit => 1)).first
|
268
|
+
when :count then
|
269
|
+
res = sql_select(options.merge(:count => true))
|
270
|
+
res
|
271
|
+
else
|
272
|
+
select_from_ids args, options
|
273
|
+
end
|
274
274
|
end
|
275
275
|
|
276
276
|
# Perform a SQL-like select request.
|
@@ -323,19 +323,7 @@ module RightAws
|
|
323
323
|
# see http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/DeveloperGuide/index.html?UsingSelect.html
|
324
324
|
#
|
325
325
|
def select(*args)
|
326
|
-
|
327
|
-
# puts 'first=' + args.first.to_s
|
328
|
-
case args.first
|
329
|
-
when :all then
|
330
|
-
sql_select(options)
|
331
|
-
when :first then
|
332
|
-
sql_select(options.merge(:limit => 1)).first
|
333
|
-
when :count then
|
334
|
-
res = sql_select(options.merge(:count => true))
|
335
|
-
res
|
336
|
-
else
|
337
|
-
select_from_ids args, options
|
338
|
-
end
|
326
|
+
find(*args)
|
339
327
|
end
|
340
328
|
|
341
329
|
def generate_id # :nodoc:
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appoxy-aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Reeder
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-
|
13
|
+
date: 2009-08-01 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|