clickhouse-activerecord 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a62437ebce5fafd239daf41a6d83aea137fbd02a
|
4
|
+
data.tar.gz: 1af618f104ee85ded1fc71a5dd28893ef34f5925
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b94de9c7bc6c2d9a09841dc14ae95a9602781818f7ea21c2a65d99213c7797d45437fcf6ef82d8e3a8fc9626236d3cad32593fc0f06cffe7be21d7571984ceca
|
7
|
+
data.tar.gz: a1afba5dacfde680fce68a398447c1470ab852892e77fc54c277ea372203168723ca5789d6b7b0d1ab5a11c441459a3ed6e26ec2865bb36e3d14002ab69baacb
|
@@ -129,7 +129,7 @@ module ActiveRecord
|
|
129
129
|
|
130
130
|
# Queries the database and returns the results in an Array-like object
|
131
131
|
def query(sql, _name = nil)
|
132
|
-
res = @connection.
|
132
|
+
res = @connection.post("/?#{@config.to_param}", "#{sql} FORMAT JSONCompact")
|
133
133
|
raise ActiveRecord::ActiveRecordError, "Response code: #{res.code}:\n#{res.body}" unless res.code.to_i == 200
|
134
134
|
JSON.parse res.body
|
135
135
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clickhouse-activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Odintsov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|