dynamodb-api 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/dynamodb/api/query.rb +10 -9
- data/lib/dynamodb/api/relation.rb +1 -1
- data/lib/dynamodb/api/relation/filter_clause.rb +1 -1
- data/lib/dynamodb/api/relation/from_clause.rb +1 -1
- data/lib/dynamodb/api/relation/global_secondary_index.rb +1 -1
- data/lib/dynamodb/api/relation/order_clause.rb +1 -1
- data/lib/dynamodb/api/relation/query_methods.rb +0 -2
- data/lib/dynamodb/api/relation/select_clause.rb +1 -1
- data/lib/dynamodb/api/relation/where_clause.rb +1 -1
- data/lib/dynamodb/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c55c5bee72292279c0bd8971f8c0482b284f254a2c2148c1ab749be54acea2a2
|
4
|
+
data.tar.gz: eb1456697a712eecdaa28d044053f7f978311922e7a42344e0e98bedfbc8a3e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3909d6062659de0d273184ecfd2e152f516bec7ba6c1bb20a2fc248bb226ccb17ff101d1ceefbea1a0db104bc04a12bbd1aa41467482fc575439e3e4c27f8f4d
|
7
|
+
data.tar.gz: 8ef953db6c060e6999951de14d4b4bd9ef293c2f4655db4ec48392d8c57e3255cbccd58a0f3d81a19cece40c3fbe269891f57233c46ac95e005a9e751fcacb1a
|
data/Gemfile.lock
CHANGED
data/lib/dynamodb/api/query.rb
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'dynamodb/api/relation'
|
4
|
+
|
3
5
|
module Dynamodb
|
4
6
|
module Api
|
5
7
|
class Query # :nodoc:
|
8
|
+
include Relation
|
6
9
|
attr_reader :client
|
7
|
-
attr_reader :relation
|
8
10
|
|
9
11
|
def initialize
|
10
|
-
@relation = Relation.new
|
11
12
|
@client = Adapter.new.client
|
12
13
|
end
|
13
14
|
|
@@ -19,18 +20,18 @@ module Dynamodb
|
|
19
20
|
|
20
21
|
def build_query
|
21
22
|
{
|
22
|
-
table_name:
|
23
|
-
index_name:
|
24
|
-
select:
|
25
|
-
scan_index_forward:
|
26
|
-
key_conditions:
|
23
|
+
table_name: from_clause.name,
|
24
|
+
index_name: index_clause.name,
|
25
|
+
select: select_clause.name,
|
26
|
+
scan_index_forward: order_clause.direct,
|
27
|
+
key_conditions: where_clause.key_conditions
|
27
28
|
}.merge(build_filter_clause)
|
28
29
|
end
|
29
30
|
|
30
31
|
def build_filter_clause
|
31
32
|
{
|
32
|
-
filter_expression:
|
33
|
-
expression_attribute_values:
|
33
|
+
filter_expression: filter_clause.expression,
|
34
|
+
expression_attribute_values: filter_clause.values
|
34
35
|
}
|
35
36
|
end
|
36
37
|
end
|
data/lib/dynamodb/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynamodb-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WalkerSumida
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|