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.

See Also:

Constant Summary

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

Instance Attribute Summary (collapse)

Method Summary

Methods inherited from DataMiner::Step

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

Instance Attribute Details

- (String) description (readonly)

Description of what this step does.



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

def description
  @description
end

- (String) statement (readonly)

String containing the SQL.



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

def statement
  @statement
end

- (String) url (readonly)

Location of the SQL file.



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

def url
  @url
end