Module: ActiveRecord::ConnectionAdapters::OracleEnhanced::DbmsOutput
- Defined in:
- lib/active_record/connection_adapters/oracle_enhanced/dbms_output.rb
Constant Summary collapse
- DBMS_OUTPUT_BUFFER_SIZE =
Maximum DBMS_OUTPUT buffer size
10000
Instance Method Summary collapse
-
#dbms_output_enabled? ⇒ Boolean
Is DBMS_Output logging enabled?.
-
#disable_dbms_output ⇒ Object
Turn DBMS_Output logging off.
-
#enable_dbms_output ⇒ Object
Turn DBMS_Output logging on.
Instance Method Details
#dbms_output_enabled? ⇒ Boolean
Is DBMS_Output logging enabled?
29 30 31 |
# File 'lib/active_record/connection_adapters/oracle_enhanced/dbms_output.rb', line 29 def dbms_output_enabled? @enable_dbms_output end |
#disable_dbms_output ⇒ Object
Turn DBMS_Output logging off
23 24 25 26 27 |
# File 'lib/active_record/connection_adapters/oracle_enhanced/dbms_output.rb', line 23 def disable_dbms_output set_dbms_output_plsql_connection @enable_dbms_output = false plsql(:dbms_output).sys.dbms_output.disable end |
#enable_dbms_output ⇒ Object
Turn DBMS_Output logging on
17 18 19 20 21 |
# File 'lib/active_record/connection_adapters/oracle_enhanced/dbms_output.rb', line 17 def enable_dbms_output set_dbms_output_plsql_connection @enable_dbms_output = true plsql(:dbms_output).sys.dbms_output.enable(DBMS_OUTPUT_BUFFER_SIZE) end |