simple-sql 0.5.16 → 0.5.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simple/sql/connection.rb +10 -0
- data/lib/simple/sql/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: 0b8298df440e9b824cf8ff857f3f79e0d269ffaa5d6aeb97f5399207ea6975ac
|
4
|
+
data.tar.gz: bef665d8dec7bb979215fe5176a852a45a6492f606c3789c2e059d6eea417581
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc00fd4efac18747a45653d8bb9aaa6d0a4551d6bd8ad983806b33cb7d6f78799be2e9da550e51b472b47970850d0e66799cc5f0e5984e58b59f3355d64d4cc6
|
7
|
+
data.tar.gz: aa96581f9292ff506935f5a51506241923ceb718f2257ad4606c719003d8fca6eaddca884dd7d1a1377f5058b899d6d9469a7144cdaf9e996c456f8ab48c1616
|
@@ -1,6 +1,16 @@
|
|
1
1
|
class Simple::SQL::Connection
|
2
2
|
end
|
3
3
|
|
4
|
+
require "pg"
|
5
|
+
|
6
|
+
# pg 0.21 prints deprecation warnings when using its definitions of PGconn,
|
7
|
+
# PGError, and PGResult. The below blocks circumvents this - and we are doing this
|
8
|
+
unless defined?(PGconn)
|
9
|
+
PGconn = PG::Connection
|
10
|
+
PGError = PG::Error
|
11
|
+
PGResult = PG::Result
|
12
|
+
end
|
13
|
+
|
4
14
|
require "active_record"
|
5
15
|
|
6
16
|
require_relative "connection/base"
|
data/lib/simple/sql/version.rb
CHANGED