click_house 1.7.0 → 2.0.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/.github/workflows/main.yml +15 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +22 -31
- data/Gemfile_faraday1 +11 -0
- data/Gemfile_faraday1.lock +111 -0
- data/Gemfile_faraday2 +1 -0
- data/Gemfile_faraday2.lock +88 -0
- data/Makefile +25 -0
- data/README.md +5 -19
- data/click_house.gemspec +4 -3
- data/lib/click_house/ast/parser.rb +53 -0
- data/lib/click_house/ast/statement.rb +99 -0
- data/lib/click_house/ast/ticker.rb +42 -0
- data/lib/click_house/ast.rb +9 -0
- data/lib/click_house/config.rb +17 -1
- data/lib/click_house/connection.rb +3 -2
- data/lib/click_house/definition/column_set.rb +3 -2
- data/lib/click_house/extend/configurable.rb +2 -0
- data/lib/click_house/extend/type_definition.rb +1 -11
- data/lib/click_house/middleware/parse_csv.rb +5 -6
- data/lib/click_house/middleware/parse_json.rb +16 -0
- data/lib/click_house/middleware/parse_json_oj.rb +22 -0
- data/lib/click_house/middleware/raise_error.rb +6 -12
- data/lib/click_house/middleware/response_base.rb +45 -0
- data/lib/click_house/middleware.rb +3 -0
- data/lib/click_house/response/result_set.rb +56 -43
- data/lib/click_house/response.rb +1 -0
- data/lib/click_house/type/array_type.rb +6 -12
- data/lib/click_house/type/base_type.rb +25 -1
- data/lib/click_house/type/date_time64_type.rb +5 -1
- data/lib/click_house/type/date_time_type.rb +5 -1
- data/lib/click_house/type/decimal_type.rb +15 -1
- data/lib/click_house/type/low_cardinality_type.rb +4 -10
- data/lib/click_house/type/map_type.rb +15 -0
- data/lib/click_house/type/nullable_type.rb +6 -8
- data/lib/click_house/type/string_type.rb +1 -1
- data/lib/click_house/type/tuple_type.rb +15 -0
- data/lib/click_house/type.rb +2 -0
- data/lib/click_house/version.rb +1 -1
- data/lib/click_house.rb +9 -2
- metadata +37 -4
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: click_house
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aliaksandr Shylau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.7'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,8 +27,11 @@ dependencies:
|
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '1.7'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
34
|
+
name: activesupport
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - ">="
|
@@ -66,6 +72,20 @@ dependencies:
|
|
66
72
|
- - ">="
|
67
73
|
- !ruby/object:Gem::Version
|
68
74
|
version: '0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: oj
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
69
89
|
- !ruby/object:Gem::Dependency
|
70
90
|
name: rspec
|
71
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +156,10 @@ files:
|
|
136
156
|
- CHANGELOG.md
|
137
157
|
- Gemfile
|
138
158
|
- Gemfile.lock
|
159
|
+
- Gemfile_faraday1
|
160
|
+
- Gemfile_faraday1.lock
|
161
|
+
- Gemfile_faraday2
|
162
|
+
- Gemfile_faraday2.lock
|
139
163
|
- LICENCE.txt
|
140
164
|
- Makefile
|
141
165
|
- README.md
|
@@ -147,6 +171,10 @@ files:
|
|
147
171
|
- doc/logo.svg
|
148
172
|
- docker-compose.yml
|
149
173
|
- lib/click_house.rb
|
174
|
+
- lib/click_house/ast.rb
|
175
|
+
- lib/click_house/ast/parser.rb
|
176
|
+
- lib/click_house/ast/statement.rb
|
177
|
+
- lib/click_house/ast/ticker.rb
|
150
178
|
- lib/click_house/config.rb
|
151
179
|
- lib/click_house/connection.rb
|
152
180
|
- lib/click_house/definition.rb
|
@@ -167,7 +195,10 @@ files:
|
|
167
195
|
- lib/click_house/middleware.rb
|
168
196
|
- lib/click_house/middleware/logging.rb
|
169
197
|
- lib/click_house/middleware/parse_csv.rb
|
198
|
+
- lib/click_house/middleware/parse_json.rb
|
199
|
+
- lib/click_house/middleware/parse_json_oj.rb
|
170
200
|
- lib/click_house/middleware/raise_error.rb
|
201
|
+
- lib/click_house/middleware/response_base.rb
|
171
202
|
- lib/click_house/response.rb
|
172
203
|
- lib/click_house/response/factory.rb
|
173
204
|
- lib/click_house/response/result_set.rb
|
@@ -184,8 +215,10 @@ files:
|
|
184
215
|
- lib/click_house/type/integer_type.rb
|
185
216
|
- lib/click_house/type/ip_type.rb
|
186
217
|
- lib/click_house/type/low_cardinality_type.rb
|
218
|
+
- lib/click_house/type/map_type.rb
|
187
219
|
- lib/click_house/type/nullable_type.rb
|
188
220
|
- lib/click_house/type/string_type.rb
|
221
|
+
- lib/click_house/type/tuple_type.rb
|
189
222
|
- lib/click_house/type/undefined_type.rb
|
190
223
|
- lib/click_house/util.rb
|
191
224
|
- lib/click_house/util/pretty.rb
|
@@ -204,7 +237,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
204
237
|
requirements:
|
205
238
|
- - ">="
|
206
239
|
- !ruby/object:Gem::Version
|
207
|
-
version: 2.
|
240
|
+
version: 2.7.0
|
208
241
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
242
|
requirements:
|
210
243
|
- - ">="
|