Class: Sneaql::Core::Commands::SneaqlExitStepIf
- Inherits:
-
SneaqlCommand
- Object
- SneaqlCommand
- Sneaql::Core::Commands::SneaqlExitStepIf
- Defined in:
- lib/sneaql_lib/core.rb
Overview
raises an error to exit the transform step if the comdition evaluates to true note that this error needs to be handled accordingly in the calling procedure as all other errors will end the transform
Instance Method Summary collapse
Methods inherited from SneaqlCommand
#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(operand1, operator, operand2) ⇒ Object
211 212 213 214 215 |
# File 'lib/sneaql_lib/core.rb', line 211 def action(operand1, operator, operand2) if @expression_handler.compare_expressions(operator, operand1, operand2) raise Sneaql::Exceptions::SQLTestStepExitCondition end end |
#arg_definition ⇒ Object
argument types
218 219 220 |
# File 'lib/sneaql_lib/core.rb', line 218 def arg_definition [:expression, :operator, :expression] end |