dynamodb-api 0.3.3 → 0.4.0
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/.pryrc +7 -0
- data/Gemfile.lock +1 -1
- data/lib/dynamodb/api.rb +3 -2
- data/lib/dynamodb/api/adapter.rb +1 -1
- data/lib/dynamodb/api/query.rb +5 -1
- data/lib/dynamodb/api/relation.rb +1 -0
- data/lib/dynamodb/api/relation/expression_attribute_names.rb +16 -0
- data/lib/dynamodb/api/relation/query_methods.rb +5 -0
- data/lib/dynamodb/api/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd5e78de7acd36a9196ea3945ce66a12e7b98c66485847b3f5727d04a044f783
|
4
|
+
data.tar.gz: 05450b5257f17ef9e3dd6d4e9ec523652dd8747c11df1859b5c3c93fd29fbf19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14d765ffb21e1140e51f6e27046a0da0da877969c0bdd9d6668eb568bfc114f918159ecbf88ad51532d02bded873019fd018f4a1cdee081d9f7ece3ffe9e8e5e
|
7
|
+
data.tar.gz: cc76aa8ffe6e9422b9c53832bf723536abcb28aa07ed018f98a23f73a10cd7780950527986fa9d81070a8b89746df4357dbf5c53704beed46d0bf0f368ad4c3b
|
data/.pryrc
ADDED
data/Gemfile.lock
CHANGED
data/lib/dynamodb/api.rb
CHANGED
@@ -13,10 +13,11 @@ require 'dynamodb/api/relation/order_clause'
|
|
13
13
|
require 'dynamodb/api/relation/where_clause'
|
14
14
|
require 'dynamodb/api/relation/filter_clause'
|
15
15
|
require 'dynamodb/api/relation/global_secondary_index'
|
16
|
+
require 'dynamodb/api/relation/expression_attribute_names'
|
16
17
|
|
17
18
|
module Dynamodb
|
18
|
-
module Api
|
19
|
-
|
19
|
+
module Api # :nodoc:
|
20
|
+
module_function
|
20
21
|
|
21
22
|
def config
|
22
23
|
block_given? ? yield(Dynamodb::Api::Config) : Dynamodb::Api::Config
|
data/lib/dynamodb/api/adapter.rb
CHANGED
data/lib/dynamodb/api/query.rb
CHANGED
@@ -19,13 +19,17 @@ module Dynamodb
|
|
19
19
|
private
|
20
20
|
|
21
21
|
def build_query
|
22
|
-
{
|
22
|
+
build_params = {
|
23
23
|
table_name: from_clause.name,
|
24
24
|
index_name: index_clause.name,
|
25
25
|
select: select_clause.name,
|
26
26
|
scan_index_forward: order_clause.direct,
|
27
27
|
key_conditions: where_clause.key_conditions
|
28
28
|
}.merge(build_filter_clause)
|
29
|
+
if expression_attribute&.names
|
30
|
+
build_params[:expression_attribute_names] = expression_attribute.names
|
31
|
+
end
|
32
|
+
build_params
|
29
33
|
end
|
30
34
|
|
31
35
|
def build_filter_clause
|
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.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WalkerSumida
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -102,6 +102,7 @@ extensions: []
|
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
104
|
- ".gitignore"
|
105
|
+
- ".pryrc"
|
105
106
|
- ".rspec"
|
106
107
|
- ".travis.yml"
|
107
108
|
- CODE_OF_CONDUCT.md
|
@@ -119,6 +120,7 @@ files:
|
|
119
120
|
- lib/dynamodb/api/config/options.rb
|
120
121
|
- lib/dynamodb/api/query.rb
|
121
122
|
- lib/dynamodb/api/relation.rb
|
123
|
+
- lib/dynamodb/api/relation/expression_attribute_names.rb
|
122
124
|
- lib/dynamodb/api/relation/filter_clause.rb
|
123
125
|
- lib/dynamodb/api/relation/from_clause.rb
|
124
126
|
- lib/dynamodb/api/relation/global_secondary_index.rb
|