Class: ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter
- 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
- #exec_insert(sql, name, binds, pk = nil, sequence_name = nil) ⇒ Object
- #exec_insert_without_profiling ⇒ Object
- #exec_query(sql, name = 'SQL', binds = []) ⇒ Object
- #exec_query_without_profiling ⇒ Object
- #exec_update(sql, name, binds) ⇒ Object (also: #exec_delete)
- #exec_update_without_profiling ⇒ Object
- #execute(sql, name = nil) ⇒ Object
- #execute_without_profiling ⇒ Object
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_profiling ⇒ Object
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_profiling ⇒ Object
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_profiling ⇒ Object
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_profiling ⇒ Object
20 |
# File 'lib/patches/db/oracle_enhanced.rb', line 20 alias_method :execute_without_profiling, :execute |