Class: ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/patches/db/oracle_enhanced.rb

Constant Summary collapse

SCHEMA_QUERY_TYPES =
["Sequence", "Primary Key", "Primary Key Trigger", nil].freeze

Instance Method Summary collapse

Instance Method Details

#exec_insert(sql, name, binds, pk = nil, sequence_name = nil) ⇒ Object



31
32
33
# File 'lib/patches/db/oracle_enhanced.rb', line 31

def exec_insert(sql, name, binds, pk = nil, sequence_name = nil)
  mp_profile_sql(sql, name) { exec_insert_without_profiling(sql, name, binds, pk, sequence_name) }
end

#exec_insert_without_profilingObject



30
# File 'lib/patches/db/oracle_enhanced.rb', line 30

alias_method :exec_insert_without_profiling, :exec_insert

#exec_query(sql, name = 'SQL', binds = []) ⇒ Object



26
27
28
# File 'lib/patches/db/oracle_enhanced.rb', line 26

def exec_query(sql, name = 'SQL', binds = [])
  mp_profile_sql(sql, name) { exec_query_without_profiling(sql, name, binds) }
end

#exec_query_without_profilingObject



25
# File 'lib/patches/db/oracle_enhanced.rb', line 25

alias_method :exec_query_without_profiling, :exec_query

#exec_update(sql, name, binds) ⇒ Object Also known as: exec_delete



36
37
38
# File 'lib/patches/db/oracle_enhanced.rb', line 36

def exec_update(sql, name, binds)
  mp_profile_sql(sql, name) { exec_update_without_profiling(sql, name, binds) }
end

#exec_update_without_profilingObject



35
# File 'lib/patches/db/oracle_enhanced.rb', line 35

alias_method :exec_update_without_profiling, :exec_update

#execute(sql, name = nil) ⇒ Object



21
22
23
# File 'lib/patches/db/oracle_enhanced.rb', line 21

def execute(sql, name = nil)
  mp_profile_sql(sql, name) { execute_without_profiling(sql, name) }
end

#execute_without_profilingObject



20
# File 'lib/patches/db/oracle_enhanced.rb', line 20

alias_method :execute_without_profiling, :execute