Method: ActiveRecord::ConnectionAdapters::OracleEnhanced::OCIConnection#ping

Defined in:
lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb

#pingObject

Checks connection, returns true if active. Note that ping actively checks the connection, while #active? simply returns the last known state.



80
81
82
83
84
# File 'lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb', line 80

def ping
  @raw_connection.ping
rescue OCIException => e
  raise OracleEnhanced::ConnectionException, e.message
end