uc3-dmp-rds 0.0.22 → 0.0.23
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 +1 -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: fc1111fe5036e396ca2a955800881a62ba4b9dcd4cc33578eb0f6594dfacb553
|
4
|
+
data.tar.gz: c561b948a42adcfcb581e75e1f06a9c8c95d91383d33d6f229ca6d51b2ed4e83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc022d1c75b71d36ec1e3bfd4e3371feace0cf7d5bdc8f100a6d8a4ddb0528350ab5fccd065d25a0fc1735e6f86ba4997a2ffff1878e7aecd8f019f7955d033b
|
7
|
+
data.tar.gz: 2cb5201da0fc67a3ab122c6f39598eaa952c37bbe64cd2daab37250470625009b69c3043744d5ffc96069339ff34b336d11c17a5298a33229fbbed82021ba466
|
data/lib/uc3-dmp-rds/adapter.rb
CHANGED
@@ -47,8 +47,7 @@ module Uc3DmpRds
|
|
47
47
|
# rubocop:enable Metrics/AbcSize
|
48
48
|
|
49
49
|
# Execute the specified query using ActiveRecord's helpers to sanitize the input
|
50
|
-
def execute_query(
|
51
|
-
raise AdapterError, MSG_UNAUTHORIZED unless user.is_a?(User)
|
50
|
+
def execute_query(sql:, **params)
|
52
51
|
return [] unless sql.is_a?(String) && !sql.strip.empty? && (params.nil? || params.is_a?(Hash))
|
53
52
|
# Verify that all of the kewords are accounted for and that values were supplied
|
54
53
|
raise AdapterError, MSG_KEYWORDS_INVALID unless _verify_params(sql: sql, params: params)
|
data/lib/uc3-dmp-rds/version.rb
CHANGED