Class: Sneaql::Core::Commands::SneaqlRemoveRecordset

Inherits:
SneaqlCommand
  • Object
show all
Defined in:
lib/sneaql_lib/core.rb

Overview

runs the query then stores the array of hashes into the recordset hash

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(recordset_name) ⇒ Object

Parameters:

  • recordset_name (String)

    name of the recordset in which to store the results



264
265
266
267
268
269
# File 'lib/sneaql_lib/core.rb', line 264

def action(recordset_name)
  @logger.info "removing recordset #{recordset_name}"
  @recordset_manager.remove_recordset(recordset_name)
rescue => e
  @exception_manager.pending_error = e
end

#arg_definitionObject

argument types



272
273
274
# File 'lib/sneaql_lib/core.rb', line 272

def arg_definition
  [:recordset]
end