lib/dataminer/repositories/report_repo.rb
# Check if a database connection from DM_CONNECTIONS for a specific key was made.
#
# @param key [String] the database key.
# @return [Crossbeams::Response] the database connection status.
Check if a database connection from DM_CONNECTIONS for a specific key was made.
Check if a database connection from DM_CONNECTIONS for a specific key was made .
def db_connected?(key)
      config = DM_CONNECTIONS.config(key)
      return success_response('ok') if config.connected
      failed_response(config.connection_error, key)
    end
def db_connected? ( key ) config = DM_CONNECTIONS . config ( key ) return success_response ( 'ok' ) if config . connected failed_response ( config . connection_error , key ) end
Check if a database connection from DM_CONNECTIONS for a specific key was made.
Check if a database connection from DM_CONNECTIONS for a specific key was made .
the database connection status.
the database connection status .
Crossbeams::Response
key
the database key.
the database key .