sequel-pgt_outbox 0.2.3 → 0.2.4
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/.release-please-manifest.json +1 -1
- data/.version.txt +1 -1
- data/CHANGELOG.md +7 -0
- data/Readme.adoc +2 -1
- data/lib/sequel/pgt_outbox/version.rb +1 -1
- data/lib/sequel/pgt_outbox.rb +3 -3
- data/oci/Gemfile +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: d400feeb0e873e210869a96f7ab1727be097e5ab3d0193098a8b66d5ffc393d5
|
4
|
+
data.tar.gz: '00708f11ab284c776ccf130e6e96047a6688f320882afc11589a6152dcffaa38'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a15f2188eacc67bc47b6ba0c407d77917503f309e2a1ff5f5cb2ba7e3995522d69c2b7c46957ff4322ed3163eea6fd08d3ff2673b69844623e8abe08cea625a
|
7
|
+
data.tar.gz: f7b58b27d95fe3d9239043bbea0ef328efe3650dd1f6c68e9a5c3265a01069f0ac0bd3adfb27afe93a0a5bb32452eb8e038bb681d0a89ed6704b2e33c74831cd
|
data/.version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.2.4](https://github.com/rubyists/sequel-pgt_outbox/compare/v0.2.3...v0.2.4) (2025-02-16)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* Corrected indentation of guard clause ([#11](https://github.com/rubyists/sequel-pgt_outbox/issues/11)) ([1216606](https://github.com/rubyists/sequel-pgt_outbox/commit/12166061f54bfc395822dab58d065b3cab848537))
|
9
|
+
|
3
10
|
## [0.2.3](https://github.com/rubyists/sequel-pgt_outbox/compare/v0.2.2...v0.2.3) (2025-02-15)
|
4
11
|
|
5
12
|
|
data/Readme.adoc
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
= Transaction Outbox for Postgres
|
2
|
+
:context: https://morningcoffee.io/what-is-a-transaction-outbox-and-why-you-need-it.html[outbox pattern]
|
2
3
|
|
3
|
-
This gem provides a way to implement the transaction
|
4
|
+
This gem provides a way to implement the transaction {context} using triggers (stored procedures) in Postgres.
|
4
5
|
|
5
6
|
It utilizes the ruby Sequel ORM to interact with the database, but once it's set up,
|
6
7
|
it doesn't require any ruby nor Sequel code for the outbox population to operate. It
|
data/lib/sequel/pgt_outbox.rb
CHANGED
@@ -39,9 +39,9 @@ module Rubyists
|
|
39
39
|
depth_limit = depth_limit.to_i
|
40
40
|
raise ArgumentError, ':trigger_depth_limit option must be at least 1' unless depth_limit >= 1
|
41
41
|
|
42
|
-
|
43
|
-
|
44
|
-
|
42
|
+
<<~SQL
|
43
|
+
IF pg_trigger_depth() > #{depth_limit} THEN
|
44
|
+
RETURN NEW;
|
45
45
|
END IF;
|
46
46
|
SQL
|
47
47
|
end
|
data/oci/Gemfile
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel-pgt_outbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bougyman
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-02-
|
10
|
+
date: 2025-02-16 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: sequel_postgresql_triggers
|