uc3-dmp-rds 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uc3-dmp-rds/adapter.rb +2 -2
- data/lib/uc3-dmp-rds/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: d98a77984b506defc6ce70bf2e3a4af4b3416abd753aef216206f344cf50fb7e
|
4
|
+
data.tar.gz: d27e9407f0353a89a162c114136de5ff37c17d074b7172513f920141d3c224fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8de55acaa42d0779359c6e21f6fb20bfa017dc85037d4e83ff8af3ff147d1f5a317d9cd5ede369165fa1501ba325f3556b0dde37026bdc5a4829a83b2a8e0cb
|
7
|
+
data.tar.gz: 4844fd62ff75d92bccd97bd4c2788b62085cbc71fa9c08a69861cb651f0820c7342342a535a8989cbeb0fe5ac30227557b319882da790a024a69f409a893cf88
|
data/lib/uc3-dmp-rds/adapter.rb
CHANGED
@@ -35,12 +35,12 @@ module Uc3DmpRds
|
|
35
35
|
password: creds[:password],
|
36
36
|
encoding: 'utf8mb4'
|
37
37
|
)
|
38
|
-
|
38
|
+
ActiveRecord::Base.connected?
|
39
39
|
end
|
40
40
|
|
41
41
|
# Execute the specified query using ActiveRecord's helpers to sanitize the input
|
42
42
|
def execute_query(sql:, **params)
|
43
|
-
|
43
|
+
raise StandardError, MSG_NO_CONNECTION unless ActiveRecord::Base.connected?
|
44
44
|
return [] unless sql.is_a?(String) && !sql.strip.empty? && (params.nil? || params.is_a?(Hash))
|
45
45
|
# Verify that all of the kewords are accounted for and that values were supplied
|
46
46
|
raise StandardError, MSG_KEYWORDS_INVALID unless _verify_params(sql: sql, params: params)
|
data/lib/uc3-dmp-rds/version.rb
CHANGED