activerecord-cockroachdb-adapter 8.0.1 → 8.0.2
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/ci.yml +3 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -0
- data/lib/active_record/connection_adapters/cockroachdb_adapter.rb +4 -6
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 771e57dca5a537a4264cb80e8418562877580f7784e0c4192ad4055221b04e8d
|
4
|
+
data.tar.gz: f3f487f3cb99dcfc2b017f2ff1f1356bf736f13f2c6f76f283234ba9a1f26e50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdc2580d710fff2d9ab8285c5fe6e0e693122382790fbaa0122e3f160d45ca72f89247e5eb4166f0128d328d4586562a4b97a3bccae34f565abd01f326cc15f8
|
7
|
+
data.tar.gz: e362feac38a67040ce888abb7cdd64f0e207972f24d316fa4cabbe2cfe714ae086c39cbcbd7de4cedf330a14d859638da6092555e215cdd233ee0a7cc807752d
|
data/.github/workflows/ci.yml
CHANGED
@@ -40,7 +40,7 @@ jobs:
|
|
40
40
|
fail-fast: false
|
41
41
|
matrix:
|
42
42
|
# https://www.cockroachlabs.com/docs/releases/release-support-policy
|
43
|
-
crdb: [v23.2, v24.1, v24.3]
|
43
|
+
crdb: [v23.2, v24.1, v24.3, v25.1]
|
44
44
|
ruby: ["3.4"]
|
45
45
|
name: Test (crdb=${{ matrix.crdb }} ruby=${{ matrix.ruby }})
|
46
46
|
steps:
|
@@ -53,6 +53,8 @@ jobs:
|
|
53
53
|
with:
|
54
54
|
ruby-version: ${{ matrix.ruby }}
|
55
55
|
bundler-cache: true
|
56
|
+
- name: Show Rails version
|
57
|
+
run: bundle info rails
|
56
58
|
- name: Install and Start Cockroachdb
|
57
59
|
run: |
|
58
60
|
# Download CockroachDB
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## Ongoing
|
4
4
|
|
5
|
+
## 8.0.2 - 2025-07-14
|
6
|
+
|
7
|
+
- Fixed the `db:migrate` command by removing usage of `execute_and_clear` function ([#377](https://github.com/cockroachdb/activerecord-cockroachdb-adapter/pull/377))
|
8
|
+
|
5
9
|
## 8.0.1 - 2025-03-04
|
6
10
|
|
7
11
|
- Fixed retry logic after transaction rollback ([#364](https://github.com/cockroachdb/activerecord-cockroachdb-adapter/pull/364))
|
data/Gemfile
CHANGED
@@ -60,6 +60,7 @@ group :development, :test do
|
|
60
60
|
|
61
61
|
# Gems used for tests meta-programming.
|
62
62
|
gem "parser"
|
63
|
+
gem "prism" # Parser is being softly deprecated, but Prism doesn't have rewriting capabilities
|
63
64
|
|
64
65
|
# Gems used by the ActiveRecord test suite
|
65
66
|
gem "bcrypt", "~> 3.1"
|
@@ -492,9 +492,8 @@ module ActiveRecord
|
|
492
492
|
if @config[:use_follower_reads_for_type_introspection]
|
493
493
|
initializer = OID::TypeMapInitializer.new(type_map)
|
494
494
|
load_types_queries_with_aost(initializer, oids) do |query|
|
495
|
-
|
496
|
-
|
497
|
-
end
|
495
|
+
records = internal_execute(query, "SCHEMA", [], allow_retry: true, materialize_transactions: false)
|
496
|
+
initializer.run(records)
|
498
497
|
end
|
499
498
|
else
|
500
499
|
super
|
@@ -550,9 +549,8 @@ module ActiveRecord
|
|
550
549
|
FROM pg_type as t AS OF SYSTEM TIME '-10s'
|
551
550
|
WHERE t.typname IN (%s)
|
552
551
|
SQL
|
553
|
-
|
554
|
-
|
555
|
-
end
|
552
|
+
result = internal_execute(query, "SCHEMA", [], allow_retry: true, materialize_transactions: false)
|
553
|
+
coders = result.filter_map { |row| construct_coder(row, coders_by_name[row["typname"]]) }
|
556
554
|
|
557
555
|
map = PG::TypeMapByOid.new
|
558
556
|
coders.each { |coder| map.add_coder(coder) }
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-cockroachdb-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.0.
|
4
|
+
version: 8.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cockroach Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|