ocean-dynamo 0.1.14 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +14 -4
- 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: eee6bfa0eda97236424ebd7639305e3baad0d91c
|
4
|
+
data.tar.gz: 378883f5079e2f007c1d2ab06993eb93fecfa65a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fae175fedf4d3926d4ca7bd63d1e800f486d8a915e88fb05a5619b5b3369cbe4c66aa08c2ff59e9f0c5ca1d5da7e0ac79f83324ec2eea8bb7849f77f1948dd1
|
7
|
+
data.tar.gz: 7bb5fb1e68e2a87cb4834298dcebb0288e93f2f9e9a8deca508393be183b7b65330ccb51c2469256d617ffecf6b680c86eda2b2747f0417e0588eeb54e6da574
|
data/README.rdoc
CHANGED
@@ -32,8 +32,7 @@ Due to its similarity to ActiveRecord, OceanDynamo works with FactoryGirl.
|
|
32
32
|
Furthermore, future versions will keep track of and delete instances after tests.
|
33
33
|
|
34
34
|
OceanDynamo will use secondary indices to retrieve related table items,
|
35
|
-
which means it will scale without limits.
|
36
|
-
implement relations, but they are underway.)
|
35
|
+
which means it will scale without limits.
|
37
36
|
|
38
37
|
|
39
38
|
==== Example
|
@@ -64,7 +63,8 @@ The following example shows the syntax.
|
|
64
63
|
|
65
64
|
Each attribute has a name, a type (:string, :integer, :float, :datetime, :boolean, or
|
66
65
|
:serialized) where :string is the default. Each attribute also optionally has a default
|
67
|
-
value, which can be a Proc.
|
66
|
+
value, which can be a Proc. The hash key attribute is by default :uuid (this can of
|
67
|
+
course be specified) and is a :string. The keys can also be explicitly declared.
|
68
68
|
|
69
69
|
The :string, :integer, :float and :datetime types can also store sets of their type.
|
70
70
|
Sets are represented as arrays and may not contain duplicates and may not be empty.
|
@@ -75,7 +75,17 @@ value will return the empty string, "".
|
|
75
75
|
Also, dynamo_schema takes args and many options. Detailed documentation is forthcoming.
|
76
76
|
|
77
77
|
At the moment, OceanDynamo is fully usable as an ActiveModel and can be used by Rails
|
78
|
-
controllers.
|
78
|
+
controllers. Furthermore, OceanDynamo implements much of the infrastructure of ActiveRecord;
|
79
|
+
for instance, read_attribute, write_attribute, and much of the control logic and
|
80
|
+
parameters.
|
81
|
+
|
82
|
+
Relations are not yet implemented, but are underway. Relations will use secondary
|
83
|
+
indices, up to the DynamoDB maximum of 5 secondary keys per table. At the moment,
|
84
|
+
only find with a single uuid is implemented. Collections can not yet be obtained.
|
85
|
+
|
86
|
+
OceanDynamo is currently used in by the Ocean framework (http://wiki.oceanframework.net)
|
87
|
+
e.g. to implement critical job queues. It will be used increasingly as features are
|
88
|
+
added to OceanDynamo and will eventually replace all Active>Record tables.
|
79
89
|
|
80
90
|
|
81
91
|
=== Documentation
|
data/lib/ocean-dynamo/version.rb
CHANGED