Class: DataMiner::Step::Sql

Inherits:
DataMiner::Step show all
Defined in:
lib/data_miner/step/sql.rb

Overview

A step that executes a SQL, either from a string or as retrieved from a URL.

Create these by calling sql inside a data_miner block.

Constant Summary collapse

URL_DETECTOR =
%r{^[^\s]*/[^\*]}

Instance Attribute Summary collapse

Method Summary

Methods inherited from DataMiner::Step

#notify, #pos, #register, #target?

Instance Attribute Details

#descriptionString (readonly)

Description of what this step does.

Returns:

  • (String)


19
20
21
# File 'lib/data_miner/step/sql.rb', line 19

def description
  @description
end

#statementString (readonly)

String containing the SQL.

Returns:

  • (String)


27
28
29
# File 'lib/data_miner/step/sql.rb', line 27

def statement
  @statement
end

#urlString (readonly)

Location of the SQL file.

Returns:

  • (String)


23
24
25
# File 'lib/data_miner/step/sql.rb', line 23

def url
  @url
end