db-postgres 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/db/postgres/adapter.rb +4 -6
- data/lib/db/postgres/version.rb +1 -1
- 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: 61a45c4212bcf4b8c3fdf1a244292581da1a1df513450d51fcd322ea625ccd94
|
4
|
+
data.tar.gz: 18310b502a0cae91906948fa5ce8c5c07c07e81590612e902588abba7fdd37e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '039afaa56fac564fbb12e66d164ab0d0700eeb6c22d6bcbb7a56ecbd209da1b065ab16c28c5b14cac513ff0af15d7ece1f549cf4fe055db62e8f742fac4406a2'
|
7
|
+
data.tar.gz: 94e9caed1d36af0a15b9efb71f96a1c151c171fe062bdd789e23c0eab023a2aadd759dbbda996809d93de7fa32323e4fdc67fa52592b7a4e6a1eb784033234bb
|
data/lib/db/postgres/adapter.rb
CHANGED
@@ -24,17 +24,15 @@ require_relative 'connection'
|
|
24
24
|
|
25
25
|
module DB
|
26
26
|
module Postgres
|
27
|
-
LOCAL = "postgres://localhost/postgres"
|
28
|
-
|
29
27
|
class Adapter
|
30
|
-
def initialize(
|
31
|
-
@
|
28
|
+
def initialize(**options)
|
29
|
+
@options = options
|
32
30
|
end
|
33
31
|
|
34
|
-
attr :
|
32
|
+
attr :options
|
35
33
|
|
36
34
|
def call
|
37
|
-
Connection.new(
|
35
|
+
Connection.new(**@options)
|
38
36
|
end
|
39
37
|
end
|
40
38
|
end
|
data/lib/db/postgres/version.rb
CHANGED