ddbcli 0.2.5 → 0.2.6

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.
@@ -44,13 +44,13 @@ rule
44
44
  | insert_stmt
45
45
  | next_stmt
46
46
 
47
- show_stmt : SHOW TABLES limit_clause
47
+ show_stmt : SHOW TABLES limit_clause like_clause
48
48
  {
49
- struct(:SHOW_TABLES, :limit => val[2])
49
+ struct(:SHOW_TABLES, :limit => val[2], :like => val[3])
50
50
  }
51
- | SHOW TABLE STATUS
51
+ | SHOW TABLE STATUS like_clause
52
52
  {
53
- struct(:SHOW_TABLE_STATUS)
53
+ struct(:SHOW_TABLE_STATUS, :like => val[3])
54
54
  }
55
55
  | SHOW REGIONS
56
56
  {
@@ -61,15 +61,21 @@ rule
61
61
  struct(:SHOW_CREATE_TABLE, :table => val[3])
62
62
  }
63
63
 
64
+ like_clause :
65
+ | LIKE STRING_VALUE
66
+ {
67
+ val[1]
68
+ }
69
+
64
70
  alter_stmt : ALTER TABLE IDENTIFIER capacity_clause
65
- {
66
- struct(:ALTER_TABLE, :table => val[2], :capacity => val[3])
67
- }
71
+ {
72
+ struct(:ALTER_TABLE, :table => val[2], :capacity => val[3])
73
+ }
68
74
 
69
75
  use_stmt : USE IDENTIFIER
70
- {
71
- struct(:USE, :endpoint_or_region => val[1])
72
- }
76
+ {
77
+ struct(:USE, :endpoint_or_region => val[1])
78
+ }
73
79
 
74
80
  create_stmt : CREATE TABLE IDENTIFIER '(' create_definition ')' capacity_clause
75
81
  {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddbcli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-16 00:00:00.000000000 Z
12
+ date: 2013-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json