Class: Ductr::SequelBase::BasicSource

Inherits:
ETL::Source show all
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

Methods inherited from ETL::Control

#call_method, #initialize

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.

Yields:

  • The each block



16
17
18
# File 'lib/ductr/sequel_base/basic_source.rb', line 16

def each(&)
  call_method(adapter.db).each(&)
end