blackstack-db 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blackstack-db.rb +10 -0
- 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: 353b4b2bdb838ebab93502e2e02ac00729a9c2056c7a7299ae513013f16ca093
|
4
|
+
data.tar.gz: 7dd91a9b54af25ce2d35f7948bb9be89879301630b6009578c565a635f5997af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5823b900dea5263daf3e93a9f8a09cedf4bc5e36a73c2b118c179a1696a1419a7e5988319de982dc9f16b39efb2aa294ac54ddd117a3efa36e7c4e7e029d858e
|
7
|
+
data.tar.gz: 7c4f6c16b311a98fec899d417e25c7b45564df4f5690384c7a0c965b8357bcefe824016688af3cd3e71cbe0ac6872c1c49740d54c5427c64effd0b1ab7dd43b8
|
data/lib/blackstack-db.rb
CHANGED
@@ -17,6 +17,16 @@ module BlackStack
|
|
17
17
|
@@db_type
|
18
18
|
end # db_type
|
19
19
|
|
20
|
+
def self.connection_string
|
21
|
+
if @@db_type == TYPE_POSTGRESQL
|
22
|
+
return BlackStack::PostgreSQL.connection_string
|
23
|
+
elsif @@db_type == TYPE_CRDB
|
24
|
+
return BlackStack::CRDB.connection_string
|
25
|
+
else
|
26
|
+
raise "Unknown database type"
|
27
|
+
end
|
28
|
+
end # connection_string
|
29
|
+
|
20
30
|
def self.db_connect
|
21
31
|
if @@db_type == TYPE_POSTGRESQL
|
22
32
|
return BlackStack::PostgreSQL.connect
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blackstack-db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leandro Daniel Sardi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|