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



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

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



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

alias_method :exec_insert_without_profiling, :exec_insert

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



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

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

#exec_query_without_profilingObject



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

alias_method :exec_query_without_profiling, :exec_query

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



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

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

#exec_update_without_profilingObject



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

alias_method :exec_update_without_profiling, :exec_update

#execute(sql, name = nil) ⇒ Object



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

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

#execute_without_profilingObject



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

alias_method :execute_without_profiling, :execute