Class: Sneaql::Core::Commands::SneaqlExecute
- Inherits:
-
SneaqlCommand
- Object
- SneaqlCommand
- Sneaql::Core::Commands::SneaqlExecute
- Defined in:
- lib/sneaql_lib/core.rb
Overview
executes a sql statement
Instance Method Summary collapse
-
#action ⇒ Object
execute sql statement last_statement_rows_affected is always set…
-
#rows_affected ⇒ Fixnum
Rows affected by SQL statement.
Methods inherited from SneaqlCommand
#arg_definition, #initialize, #valid_expression?, #valid_operator?, #valid_recordset?, #valid_symbol?, #valid_variable?, #validate_args
Constructor Details
This class inherits a constructor from Sneaql::Core::SneaqlCommand
Instance Method Details
#action ⇒ Object
execute sql statement last_statement_rows_affected is always set…
80 81 82 83 84 85 86 87 |
# File 'lib/sneaql_lib/core.rb', line 80 def action @expression_handler.set_session_variable( 'last_statement_rows_affected', rows_affected ) rescue => e @exception_manager.pending_error = e end |
#rows_affected ⇒ Fixnum
Returns rows affected by SQL statement.
90 91 92 93 94 95 96 |
# File 'lib/sneaql_lib/core.rb', line 90 def rows_affected JDBCHelpers::Execute.new( @jdbc_connection, @statement, @logger ).rows_affected end |