sequel-activerecord_connection 0.2.2 → 0.2.3
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af03da0244bb9eedd77b19377ee8ced698c347c1e91af8457956589a3960bc08
|
|
4
|
+
data.tar.gz: ddb5b1d45042644b0caed6f0fce07aaec872cfb4e7ed6456ea4e536a4af6833f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a08b930bdbd1262d4f4299e21ff5d92812ad2ef8c30de9b36963c22ae8a39666d308b9fe1a8fbf1749e412687c4f149e38b5b0dac12b74923036c4c674a5db53
|
|
7
|
+
data.tar.gz: e5541c627333193ef80b5f74c2f2714137b15f8deff876e25503c89ddf4650f4db7ee12b9d30b8927fa3d03418934111277720541d43d3359458776f437957ff
|
|
@@ -21,7 +21,12 @@ module Sequel
|
|
|
21
21
|
raise Error, "creating a Sequel connection is not allowed"
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
def transaction(
|
|
24
|
+
def transaction(options = {})
|
|
25
|
+
savepoint = options.delete(:savepoint)
|
|
26
|
+
rollback = options.delete(:rollback)
|
|
27
|
+
auto_savepoint = options.delete(:auto_savepoint)
|
|
28
|
+
server = options.delete(:server)
|
|
29
|
+
|
|
25
30
|
fail Error, "#{options} transaction options are currently not supported" unless options.empty?
|
|
26
31
|
|
|
27
32
|
if in_transaction?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sequel-activerecord_connection
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Janko Marohnić
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-05-
|
|
11
|
+
date: 2020-05-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sequel
|