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: 25a2248a31a1c80f4ef545ae26f48a3365fc033b
4
- data.tar.gz: 4e622f79b93f29e49c0e7ed5c0922320c492537b
3
+ metadata.gz: 95e15e250fc477a64d9a5f99faae7a831643c599
4
+ data.tar.gz: aea2dd5a8c32635882c94ce49ce2a37b19126835
5
5
  SHA512:
6
- metadata.gz: ed33a8660e182277c87072ed7f4f060279c75baa2ec4ad21ac6aac310ace27822f99c9c43f25f98d2b9d8a120fe9aaf2248cd00319cdf6f115cf8a57d15a65e7
7
- data.tar.gz: 63e90d889e17024db6fb23e5017fc62d7daa5bcdcdbb26384f9d769e7294ae2dd242046b16815e6566ff3390e8feb970f613d357785308fcc2c21a427c8a2cf7
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.get("/?#{@config.merge(query: "#{sql} FORMAT JSONCompact").to_param}")
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
@@ -1,3 +1,3 @@
1
1
  module ClickhouseActiverecord
2
- VERSION = '0.1.8'
2
+ VERSION = '0.1.9'
3
3
  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.8
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-03-28 00:00:00.000000000 Z
11
+ date: 2018-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler