Class: DataMiner::Step::Sql
- Inherits:
-
DataMiner::Step
- Object
- DataMiner::Step
- DataMiner::Step::Sql
- 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
-
#description ⇒ String
readonly
Description of what this step does.
-
#statement ⇒ String
readonly
String containing the SQL.
-
#url ⇒ String
readonly
Location of the SQL file.
Method Summary
Methods inherited from DataMiner::Step
#notify, #pos, #register, #target?
Instance Attribute Details
#description ⇒ String (readonly)
Description of what this step does.
19 20 21 |
# File 'lib/data_miner/step/sql.rb', line 19 def description @description end |
#statement ⇒ String (readonly)
String containing the SQL.
27 28 29 |
# File 'lib/data_miner/step/sql.rb', line 27 def statement @statement end |
#url ⇒ String (readonly)
Location of the SQL file.
23 24 25 |
# File 'lib/data_miner/step/sql.rb', line 23 def url @url end |