uc3-dmp-rds 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d491135d6067f7ef206b6674634897e80e305fbf8d886a3f4b1b3d32762813b
4
- data.tar.gz: 965e807f2ecabebbcaca3a5e251bf8844e17be5dad1731dc5c6d3d4d8cfc4bd2
3
+ metadata.gz: cc6233160adcb2ba80c918f291132ed535c074408e9e8741ecc22ba75d3a9560
4
+ data.tar.gz: 84b0cb62671d6b7a6495b6f4a866d1e102cae41f6112d2ef89f5e3305d2e3b32
5
5
  SHA512:
6
- metadata.gz: 8bf401ad2b04e0865f304ee1bdc1d0a50bfc179dea37892bbc8207ce641e930d6e228dd38c5b472294cc31ab26f6b20a1c49735bed9611dcc76549f22ba1d712
7
- data.tar.gz: f2bc501cc49ad107c7b61ddfcd9564ca95cded57e2b578c79945026eb76a8975606c3cad77fa35fddb6f6a82e1a03f63edb51157eb4fe43d2e4f20dcafd1dcdf
6
+ metadata.gz: 2f196f1ce63bda0b18a0f12a7412bc469586485362396e30d64b4f3e77c04efd59e8772b69bc8a69eb4da1f9a95eeb90d7ae6ecc6934d9fa09da5ec661fd7e09
7
+ data.tar.gz: 2061fdebee99d9e038f5c40a2a4bcaf7266c8aed7172b9e315f4a0d035a6f5a915842558045029b015f0b14d09694ed527f907696a9d11c4516eab21494dd15f
@@ -24,7 +24,7 @@ module Uc3DmpRds
24
24
 
25
25
  class << self
26
26
  # Connect to the RDS instance
27
- def connect
27
+ def connect(debug: false)
28
28
  creds = _credentials
29
29
  ActiveRecord::Base.establish_connection(
30
30
  adapter: 'mysql2',
@@ -35,12 +35,12 @@ module Uc3DmpRds
35
35
  password: creds[:password],
36
36
  encoding: 'utf8mb4'
37
37
  )
38
- ActiveRecord::Base.connected?
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
- raise StandardError, MSG_NO_CONNECTION unless ActiveRecord::Base.connected?
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpRds
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-rds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley