ocean-dynamo 0.6.2 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ocean-dynamo/queries.rb +5 -5
- data/lib/ocean-dynamo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f5dffe6dc00e94b77dec7aff11382bc0f512d54
|
4
|
+
data.tar.gz: 18f6e9969b2611b910b161d5725c11b35b20541e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97b663d694875c923082fdd8034c531d60b9dbb1208f4de6104bf9b54bbb153149858e03593f86be65f390fb86f82caf51a7329a91af82a5ed13400fede3b3f4
|
7
|
+
data.tar.gz: caa5a6da3f41e9bbd81c824303ebe3fb1ef4f9eeb2c9a447e85b646061661bea3c1eee8e56d105962d89489f3885ab144ebe3d1cc5ed0f3842037385dd8db13d
|
data/lib/ocean-dynamo/queries.rb
CHANGED
@@ -40,11 +40,11 @@ module OceanDynamo
|
|
40
40
|
#
|
41
41
|
# Returns all records in the table.
|
42
42
|
#
|
43
|
-
def all(**options)
|
43
|
+
def all(consistent: false, **options)
|
44
44
|
_late_connect?
|
45
45
|
result = []
|
46
46
|
dynamo_items.select(options) do |item_data|
|
47
|
-
result << new._setup_from_dynamo(item_data)
|
47
|
+
result << new._setup_from_dynamo(item_data, consistent: consistent)
|
48
48
|
end
|
49
49
|
result
|
50
50
|
end
|
@@ -57,9 +57,9 @@ module OceanDynamo
|
|
57
57
|
# In that case, batch processing methods allow you to work with the records in batches,
|
58
58
|
# thereby greatly reducing memory consumption.
|
59
59
|
#
|
60
|
-
def find_each(limit: nil, batch_size: 1000)
|
61
|
-
dynamo_items.select(limit: limit, batch_size:
|
62
|
-
yield new._setup_from_dynamo(item_data)
|
60
|
+
def find_each(limit: nil, batch_size: 1000, consistent: false)
|
61
|
+
dynamo_items.select(limit: limit, batch_size: batch_size) do |item_data|
|
62
|
+
yield new._setup_from_dynamo(item_data, consistent: consistent)
|
63
63
|
end
|
64
64
|
true
|
65
65
|
end
|
data/lib/ocean-dynamo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocean-dynamo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Bengtson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|