clickhouse-activerecord 0.1.8 → 0.1.9
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: 95e15e250fc477a64d9a5f99faae7a831643c599
|
4
|
+
data.tar.gz: aea2dd5a8c32635882c94ce49ce2a37b19126835
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4487476126af3c3025075bd3e8727f7232e163f3bef0ee2fdebf23bed7ca03f40d89601463be151f79caabcfa08540fbe0469f0c43fc94b4a882035642415fb
|
7
|
+
data.tar.gz: 939d15b666d661e1d395b1c6cba3234503764ec3591ecd897ec304361f328aaddb1adb17cc866a14300efa0871c5a72ef70a85a4d7fac3c6ee851de138005e61
|
@@ -149,7 +149,7 @@ module ActiveRecord
|
|
149
149
|
|
150
150
|
# Queries the database and returns the results in an Array-like object
|
151
151
|
def query(sql, _name = nil)
|
152
|
-
res = @connection.
|
152
|
+
res = @connection.post("/?#{@config.to_param}", "#{sql} FORMAT JSONCompact")
|
153
153
|
raise ActiveRecord::ActiveRecordError, "Response code: #{res.code}:\n#{res.body}" unless res.code.to_i == 200
|
154
154
|
JSON.parse res.body
|
155
155
|
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.1.
|
4
|
+
version: 0.1.9
|
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
|