ocean-dynamo 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ocean-dynamo/persistence.rb +2 -0
- data/lib/ocean-dynamo/queries.rb +1 -0
- data/lib/ocean-dynamo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f47c84e16690a9e6d9cc8ce347a4efaef40598db
|
4
|
+
data.tar.gz: da9becfcb7f846de88cd3bfbc18790ee9880ab86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ada716f3b882be636aadec0dae83dd951390271eb3a42ea85df5d82d262fe1851f5d60a4928584608386bb9c1e01ae2f09c76c084f289a13fa003e6da72e5a6
|
7
|
+
data.tar.gz: 83e2e1f504b457436693a10d6da162cc0078ddc3a76c36f53d05c1fa04a78d70970e675de20936c8a8c348bd546c96a9af43a9ce93a98a04d7a5a7e05f96b2fb
|
@@ -49,6 +49,7 @@ module OceanDynamo
|
|
49
49
|
# Deletes all records without instantiating them first.
|
50
50
|
#
|
51
51
|
def delete_all
|
52
|
+
_late_connect?
|
52
53
|
ean = { "#H" => table_hash_key.to_s }
|
53
54
|
ean["#R"] = table_range_key.to_s if table_range_key
|
54
55
|
options = {
|
@@ -71,6 +72,7 @@ module OceanDynamo
|
|
71
72
|
# Destroys all records after first instantiating them.
|
72
73
|
#
|
73
74
|
def destroy_all
|
75
|
+
_late_connect?
|
74
76
|
in_batches :scan, { consistent_read: true } do |attrs|
|
75
77
|
new._setup_from_dynamo(attrs).destroy
|
76
78
|
end
|
data/lib/ocean-dynamo/queries.rb
CHANGED
data/lib/ocean-dynamo/version.rb
CHANGED