ddbcli 0.2.7 → 0.3.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 +15 -0
- data/README +4 -1
- data/bin/ddbcli +1 -1
- data/lib/ddbcli/cli/help.rb +5 -1
- data/lib/ddbcli/ddb-driver.rb +112 -23
- data/lib/ddbcli/ddb-parser.tab.rb +586 -515
- data/lib/ddbcli/ddb-parser.y +31 -0
- metadata +5 -9
data/lib/ddbcli/ddb-parser.y
CHANGED
@@ -124,6 +124,16 @@ rule
|
|
124
124
|
{
|
125
125
|
{:read => val[6], :write => val[2]}
|
126
126
|
}
|
127
|
+
| strict_capacity_clause
|
128
|
+
|
129
|
+
strict_capacity_clause : READ EQ NUMBER_VALUE WRITE EQ NUMBER_VALUE
|
130
|
+
{
|
131
|
+
{:read => val[2], :write => val[5]}
|
132
|
+
}
|
133
|
+
| WRITE EQ NUMBER_VALUE READ EQ NUMBER_VALUE
|
134
|
+
{
|
135
|
+
{:read => val[5], :write => val[2]}
|
136
|
+
}
|
127
137
|
|
128
138
|
index_definition_list : index_definition
|
129
139
|
{
|
@@ -138,6 +148,26 @@ rule
|
|
138
148
|
{
|
139
149
|
{:name => val[1], :key => val[3], :type => val[4], :projection => val[6]}
|
140
150
|
}
|
151
|
+
| GLOBAL INDEX IDENTIFIER '(' global_index_keys ')' index_type_definition
|
152
|
+
{
|
153
|
+
{:name => val[2], :keys => val[4], :projection => val[6], :global => true}
|
154
|
+
}
|
155
|
+
| GLOBAL INDEX IDENTIFIER '(' global_index_keys ')' index_type_definition strict_capacity_clause
|
156
|
+
{
|
157
|
+
{:name => val[2], :keys => val[4], :projection => val[6], :capacity => val[7], :global => true}
|
158
|
+
}
|
159
|
+
|
160
|
+
global_index_keys : IDENTIFIER attr_type_list
|
161
|
+
{
|
162
|
+
{:hash => {:key => val[0], :type => val[1]}}
|
163
|
+
}
|
164
|
+
| IDENTIFIER attr_type_list ',' IDENTIFIER attr_type_list
|
165
|
+
{
|
166
|
+
{
|
167
|
+
:hash => {:key => val[0], :type => val[1]},
|
168
|
+
:range => {:key => val[3], :type => val[4]},
|
169
|
+
}
|
170
|
+
}
|
141
171
|
|
142
172
|
index_type_definition : ALL
|
143
173
|
{
|
@@ -523,6 +553,7 @@ KEYWORDS = %w(
|
|
523
553
|
DROP
|
524
554
|
FROM
|
525
555
|
GET
|
556
|
+
GLOBAL
|
526
557
|
HASH
|
527
558
|
INCLUDE
|
528
559
|
INDEX
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddbcli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- winebarrel
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-12-13 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: json
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -52,26 +49,25 @@ files:
|
|
52
49
|
- lib/ddbcli.rb
|
53
50
|
homepage: https://bitbucket.org/winebarrel/ddbcli
|
54
51
|
licenses: []
|
52
|
+
metadata: {}
|
55
53
|
post_install_message:
|
56
54
|
rdoc_options: []
|
57
55
|
require_paths:
|
58
56
|
- lib
|
59
57
|
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
-
none: false
|
61
58
|
requirements:
|
62
59
|
- - ! '>='
|
63
60
|
- !ruby/object:Gem::Version
|
64
61
|
version: '0'
|
65
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
63
|
requirements:
|
68
64
|
- - ! '>='
|
69
65
|
- !ruby/object:Gem::Version
|
70
66
|
version: '0'
|
71
67
|
requirements: []
|
72
68
|
rubyforge_project:
|
73
|
-
rubygems_version: 1.
|
69
|
+
rubygems_version: 2.1.11
|
74
70
|
signing_key:
|
75
|
-
specification_version:
|
71
|
+
specification_version: 4
|
76
72
|
summary: ddbcli is an interactive command-line client of Amazon DynamoDB.
|
77
73
|
test_files: []
|