foobara-postgresql-crud-driver 0.0.2 → 0.0.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/src/postgresql_crud_driver.rb +4 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6846188257d6cad52ea962972ddd82f82d72162ea0a46df18983a92bb3c2b444
|
|
4
|
+
data.tar.gz: 349cb1d585f814335f083ed9cb5105a42bb9e9b10a8a8e5f9fa6444b3670dcfd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 516fede04188fb07fdb5b62be6400cdaf507c3d7b1ffc961ec5045591f9257c1bbeca2967dd21a12a6e96484690b30344422509e7a4ea5dc5724afab426223d0
|
|
7
|
+
data.tar.gz: 4cab91509e1450dceafe8bcd022f25f48af4d52906a0d9b5c4a86d75cb1520f5347bf96b4b3f76c09bbb9cdb053e9fd03d8009f77d931831db9e1cfb5c291efa
|
data/CHANGELOG.md
CHANGED
|
@@ -39,10 +39,10 @@ module Foobara
|
|
|
39
39
|
|
|
40
40
|
attr_accessor :creds, :transaction_number
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
def initialize(connection_or_credentials = nil, **)
|
|
43
|
+
# We will manage the connections ourselves and don't want to automatically open one now
|
|
44
|
+
super(**, connect: false)
|
|
45
|
+
|
|
46
46
|
self.transaction_number = self.class.get_transaction_number
|
|
47
47
|
self.tables = {}
|
|
48
48
|
self.creds = case connection_or_credentials
|
|
@@ -59,7 +59,6 @@ module Foobara
|
|
|
59
59
|
# :nocov:
|
|
60
60
|
end
|
|
61
61
|
end
|
|
62
|
-
# rubocop:enable Lint/MissingSuper
|
|
63
62
|
|
|
64
63
|
def open_connection
|
|
65
64
|
PG.connect(creds)
|