aws-dynamodb-query 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/workspace.xml +15 -14
- data/lib/aws/dynamodb/query.rb +3 -0
- data/lib/aws/dynamodb/query/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: 59ea6131cfa2dd0dd7dde866ebf50584a18da37d
|
4
|
+
data.tar.gz: 3d389aa7b8a461c4886c91d9cafdd3fc80b20bfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43ddabaf26bdeacaf50e238e4c7409cf7dd8c5f1af52f7a3729b4bb1d983618f4ad7fffd63442d7eb5c08e5b3fa6e190e612fea2ff1e2572e85700d1f41fb40c
|
7
|
+
data.tar.gz: 8caaf1f7e1d830b4863c17b2dd89d50484a7261ae0a2f31a0bd28d44a35f8520cc9200c36e585698f409cc4efd48abe8e61dfc5448527e979a79abf92cc6992d
|
data/.idea/workspace.xml
CHANGED
@@ -37,8 +37,8 @@
|
|
37
37
|
<file leaf-file-name="query.rb" pinned="false" current-in-tab="false">
|
38
38
|
<entry file="file://$PROJECT_DIR$/lib/aws/dynamodb/query.rb">
|
39
39
|
<provider selected="true" editor-type-id="text-editor">
|
40
|
-
<state relative-caret-position="
|
41
|
-
<caret line="
|
40
|
+
<state relative-caret-position="946">
|
41
|
+
<caret line="137" column="17" lean-forward="false" selection-start-line="137" selection-start-column="17" selection-end-line="137" selection-end-column="17" />
|
42
42
|
<folding />
|
43
43
|
</state>
|
44
44
|
</provider>
|
@@ -58,7 +58,7 @@
|
|
58
58
|
<entry file="file://$PROJECT_DIR$/lib/aws/dynamodb/query/version.rb">
|
59
59
|
<provider selected="true" editor-type-id="text-editor">
|
60
60
|
<state relative-caret-position="45">
|
61
|
-
<caret line="3" column="
|
61
|
+
<caret line="3" column="23" lean-forward="false" selection-start-line="3" selection-start-column="23" selection-end-line="3" selection-end-column="23" />
|
62
62
|
<folding />
|
63
63
|
</state>
|
64
64
|
</provider>
|
@@ -111,7 +111,6 @@
|
|
111
111
|
</component>
|
112
112
|
<component name="FindInProjectRecents">
|
113
113
|
<findStrings>
|
114
|
-
<find>pagination</find>
|
115
114
|
<find>@secret_key</find>
|
116
115
|
<find>aws_access_key_id</find>
|
117
116
|
<find>Signature</find>
|
@@ -141,6 +140,7 @@
|
|
141
140
|
<find>record[key_dasherized] = record[key_dasherized] || item[key][data_type]</find>
|
142
141
|
<find>attribute_keys</find>
|
143
142
|
<find>attributes</find>
|
143
|
+
<find>result_type</find>
|
144
144
|
</findStrings>
|
145
145
|
</component>
|
146
146
|
<component name="Git.Settings">
|
@@ -165,10 +165,11 @@
|
|
165
165
|
<detection-done>true</detection-done>
|
166
166
|
<sorting>DEFINITION_ORDER</sorting>
|
167
167
|
</component>
|
168
|
-
<component name="ProjectFrameBounds"
|
169
|
-
<option name="x" value="
|
170
|
-
<option name="
|
171
|
-
<option name="
|
168
|
+
<component name="ProjectFrameBounds">
|
169
|
+
<option name="x" value="244" />
|
170
|
+
<option name="y" value="23" />
|
171
|
+
<option name="width" value="1616" />
|
172
|
+
<option name="height" value="1344" />
|
172
173
|
</component>
|
173
174
|
<component name="ProjectInspectionProfilesVisibleTreeState">
|
174
175
|
<entry key="Project Default">
|
@@ -303,7 +304,7 @@
|
|
303
304
|
<workItem from="1509691695668" duration="1603000" />
|
304
305
|
<workItem from="1510049148369" duration="1870000" />
|
305
306
|
<workItem from="1510132643711" duration="254000" />
|
306
|
-
<workItem from="1510312325679" duration="
|
307
|
+
<workItem from="1510312325679" duration="1492000" />
|
307
308
|
</task>
|
308
309
|
<task id="LOCAL-00001" summary="First working release 0.1.1">
|
309
310
|
<created>1509537033535</created>
|
@@ -330,10 +331,10 @@
|
|
330
331
|
<servers />
|
331
332
|
</component>
|
332
333
|
<component name="TimeTrackingManager">
|
333
|
-
<option name="totallyTimeSpent" value="
|
334
|
+
<option name="totallyTimeSpent" value="26159000" />
|
334
335
|
</component>
|
335
336
|
<component name="ToolWindowManager">
|
336
|
-
<frame x="
|
337
|
+
<frame x="244" y="23" width="1616" height="1344" extended-state="0" />
|
337
338
|
<editor active="true" />
|
338
339
|
<layout>
|
339
340
|
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.18358113" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
@@ -776,8 +777,8 @@
|
|
776
777
|
</entry>
|
777
778
|
<entry file="file://$PROJECT_DIR$/lib/aws/dynamodb/query.rb">
|
778
779
|
<provider selected="true" editor-type-id="text-editor">
|
779
|
-
<state relative-caret-position="
|
780
|
-
<caret line="
|
780
|
+
<state relative-caret-position="946">
|
781
|
+
<caret line="137" column="17" lean-forward="false" selection-start-line="137" selection-start-column="17" selection-end-line="137" selection-end-column="17" />
|
781
782
|
<folding />
|
782
783
|
</state>
|
783
784
|
</provider>
|
@@ -785,7 +786,7 @@
|
|
785
786
|
<entry file="file://$PROJECT_DIR$/lib/aws/dynamodb/query/version.rb">
|
786
787
|
<provider selected="true" editor-type-id="text-editor">
|
787
788
|
<state relative-caret-position="45">
|
788
|
-
<caret line="3" column="
|
789
|
+
<caret line="3" column="23" lean-forward="false" selection-start-line="3" selection-start-column="23" selection-end-line="3" selection-end-column="23" />
|
789
790
|
<folding />
|
790
791
|
</state>
|
791
792
|
</provider>
|
data/lib/aws/dynamodb/query.rb
CHANGED
@@ -15,6 +15,7 @@ module Aws
|
|
15
15
|
# @param [String] table_name The name of the table containing the requested items.
|
16
16
|
# @param [Class] model_class model record class used to find stored attributes
|
17
17
|
# @param [Boolean] nullify_model_attributes false by default, when true assigns null to model attributes that are not returned with DB resultset
|
18
|
+
# @param [Class] result_type model_class (pass the record class e.g. User), Struct, or Hash
|
18
19
|
# @param [String] index_name The name of an index to query
|
19
20
|
# @param [String] select The attributes to be returned in the result: ALL_ATTRIBUTES, ALL_PROJECTED_ATTRIBUTES, COUNT, SPECIFIC_ATTRIBUTES
|
20
21
|
# @param [String] key_condition_expression The condition that specifies the key value(s) for items to be retrieved by the Query action
|
@@ -130,6 +131,8 @@ module Aws
|
|
130
131
|
attribute_values << record[attribute_key.to_s.dasherize]
|
131
132
|
end
|
132
133
|
result << Struct::AwsDynamodbQueryDAO.new(*attribute_values)
|
134
|
+
when model_class.to_s
|
135
|
+
result << model_class.new(record)
|
133
136
|
else
|
134
137
|
result << record
|
135
138
|
end
|