clickhouse-activerecord 1.6.6 → 1.6.7
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/testing.yml +9 -11
- data/CHANGELOG.md +4 -0
- data/clickhouse-activerecord.gemspec +0 -1
- data/lib/active_record/connection_adapters/clickhouse/schema_statements.rb +1 -1
- data/lib/active_record/connection_adapters/clickhouse/statement/response_processor.rb +2 -0
- data/lib/clickhouse-activerecord/rspec.rb +1 -1
- data/lib/clickhouse-activerecord/version.rb +1 -1
- metadata +3 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 48ec3fe01120adc07f02f2f8c8ff989d8866f8ce054efff32e63940e13dbc29c
|
|
4
|
+
data.tar.gz: 28f2c0189a4ef073849ea84bae2bb900bdd6c2e59014730e6a683714209f1b88
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 940ae4fc464c3bd1526a1c9694ed7ce21496e76dfea85127ad3c37a3cc2aa09661b67e4ad3ec9f640c009ac032106f5c99d70afdcb03c7d0ecc7b6511a1d2523
|
|
7
|
+
data.tar.gz: c98f507ba8e99e0096251eeff287f18259e2568b62fb60f8cc10385943c18b4877bae0b518c2ba4389af04a965885c4a04b171e033fd15ac38b3e6742d828c07
|
|
@@ -22,23 +22,23 @@ jobs:
|
|
|
22
22
|
max-parallel: 1
|
|
23
23
|
matrix:
|
|
24
24
|
version:
|
|
25
|
-
- ruby: 2.7
|
|
26
|
-
rails: 7.1.3
|
|
27
25
|
- ruby: 3.2
|
|
28
|
-
rails: 7.
|
|
29
|
-
- ruby: 3.2
|
|
30
|
-
rails: 7.2.1
|
|
26
|
+
rails: 7.2.3
|
|
31
27
|
- ruby: 3.2
|
|
32
28
|
rails: 8.0.1
|
|
33
29
|
- ruby: 3.2
|
|
34
30
|
rails: 8.1
|
|
31
|
+
- ruby: 4.0
|
|
32
|
+
rails: 7.2.3
|
|
33
|
+
- ruby: 4.0
|
|
34
|
+
rails: 8.1
|
|
35
35
|
clickhouse: [ '24.6', '24.9', '25.10' ]
|
|
36
36
|
|
|
37
37
|
steps:
|
|
38
38
|
- uses: actions/checkout@v4
|
|
39
39
|
|
|
40
40
|
- name: Start ClickHouse ${{ matrix.clickhouse }}
|
|
41
|
-
uses: hoverkraft-tech/compose-action@v2.
|
|
41
|
+
uses: hoverkraft-tech/compose-action@v2.5.0
|
|
42
42
|
env:
|
|
43
43
|
CLICKHOUSE_VERSION: ${{ matrix.clickhouse }}
|
|
44
44
|
with:
|
|
@@ -71,23 +71,21 @@ jobs:
|
|
|
71
71
|
max-parallel: 1
|
|
72
72
|
matrix:
|
|
73
73
|
version:
|
|
74
|
-
- ruby: 2.7
|
|
75
|
-
rails: 7.1.3
|
|
76
|
-
- ruby: 3.2
|
|
77
|
-
rails: 7.1.3
|
|
78
74
|
- ruby: 3.2
|
|
79
75
|
rails: 7.2.1
|
|
80
76
|
- ruby: 3.2
|
|
81
77
|
rails: 8.0.1
|
|
82
78
|
- ruby: 3.2
|
|
83
79
|
rails: 8.1
|
|
80
|
+
- ruby: 4.0
|
|
81
|
+
rails: 8.1
|
|
84
82
|
clickhouse: [ '24.9', '25.10' ]
|
|
85
83
|
|
|
86
84
|
steps:
|
|
87
85
|
- uses: actions/checkout@v4
|
|
88
86
|
|
|
89
87
|
- name: Start ClickHouse Cluster ${{ matrix.clickhouse }}
|
|
90
|
-
uses: hoverkraft-tech/compose-action@v2.
|
|
88
|
+
uses: hoverkraft-tech/compose-action@v2.5.0
|
|
91
89
|
env:
|
|
92
90
|
CLICKHOUSE_VERSION: ${{ matrix.clickhouse }}
|
|
93
91
|
with:
|
data/CHANGELOG.md
CHANGED
|
@@ -78,7 +78,7 @@ module ActiveRecord
|
|
|
78
78
|
def exec_insert(sql, name = nil, _binds = [], _pk = nil, _sequence_name = nil, returning: nil)
|
|
79
79
|
new_sql = sql.sub(/ (DEFAULT )?VALUES/, " VALUES")
|
|
80
80
|
with_response_format(nil) { execute(new_sql, name) }
|
|
81
|
-
|
|
81
|
+
nil
|
|
82
82
|
end
|
|
83
83
|
|
|
84
84
|
def internal_exec_query(sql, name = nil, binds = [], prepare: false, async: false, allow_retry: false)
|
|
@@ -5,7 +5,7 @@ RSpec.configure do |config|
|
|
|
5
5
|
original_connection_config = ActiveRecord::Base.connection_db_config
|
|
6
6
|
ActiveRecord::Base.configurations.configurations.select { |x| x.env_name == Rails.env && x.adapter == 'clickhouse' }.each do |db_config|
|
|
7
7
|
ActiveRecord::Base.establish_connection(db_config)
|
|
8
|
-
ActiveRecord::Base.connection.
|
|
8
|
+
ActiveRecord::Base.connection.execute("TRUNCATE ALL TABLES FROM #{db_config.database}")
|
|
9
9
|
end
|
|
10
10
|
ActiveRecord::Base.establish_connection(original_connection_config)
|
|
11
11
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: clickhouse-activerecord
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.6.
|
|
4
|
+
version: 1.6.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sergey Odintsov
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: bundler
|
|
@@ -72,20 +71,6 @@ dependencies:
|
|
|
72
71
|
- - "~>"
|
|
73
72
|
- !ruby/object:Gem::Version
|
|
74
73
|
version: '3.4'
|
|
75
|
-
- !ruby/object:Gem::Dependency
|
|
76
|
-
name: pry
|
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
|
78
|
-
requirements:
|
|
79
|
-
- - "~>"
|
|
80
|
-
- !ruby/object:Gem::Version
|
|
81
|
-
version: '0.12'
|
|
82
|
-
type: :development
|
|
83
|
-
prerelease: false
|
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
85
|
-
requirements:
|
|
86
|
-
- - "~>"
|
|
87
|
-
- !ruby/object:Gem::Version
|
|
88
|
-
version: '0.12'
|
|
89
74
|
description: ActiveRecord adapter for ClickHouse
|
|
90
75
|
email:
|
|
91
76
|
- nixx.dj@gmail.com
|
|
@@ -154,7 +139,6 @@ homepage: https://github.com/pnixx/clickhouse-activerecord
|
|
|
154
139
|
licenses:
|
|
155
140
|
- MIT
|
|
156
141
|
metadata: {}
|
|
157
|
-
post_install_message:
|
|
158
142
|
rdoc_options: []
|
|
159
143
|
require_paths:
|
|
160
144
|
- lib
|
|
@@ -169,8 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
169
153
|
- !ruby/object:Gem::Version
|
|
170
154
|
version: '0'
|
|
171
155
|
requirements: []
|
|
172
|
-
rubygems_version:
|
|
173
|
-
signing_key:
|
|
156
|
+
rubygems_version: 4.0.6
|
|
174
157
|
specification_version: 4
|
|
175
158
|
summary: ClickHouse ActiveRecord
|
|
176
159
|
test_files: []
|