Class: Ductr::SequelBase::BasicSource
- Inherits:
-
ETL::Source
- Object
- ETL::Control
- ETL::Source
- Ductr::SequelBase::BasicSource
- Defined in:
- lib/ductr/sequel_base/basic_source.rb
Overview
A source control that yields rows one by one.
Instance Attribute Summary
Attributes inherited from ETL::Control
#adapter, #job_method, #options
Instance Method Summary collapse
-
#each { ... } ⇒ void
Opens the database, calls the job’s method and iterate over the query results.
Methods inherited from ETL::Control
Constructor Details
This class inherits a constructor from Ductr::ETL::Control
Instance Method Details
#each { ... } ⇒ void
This method returns an undefined value.
Opens the database, calls the job’s method and iterate over the query results.
16 17 18 |
# File 'lib/ductr/sequel_base/basic_source.rb', line 16 def each(&) call_method(adapter.db).each(&) end |