Class: Ductr::SequelBase::BasicDestination
- Inherits:
-
ETL::Destination
- Object
- ETL::Control
- ETL::Destination
- Ductr::SequelBase::BasicDestination
- Defined in:
- lib/ductr/sequel_base/basic_destination.rb
Overview
A destination control that write rows one by one.
Instance Attribute Summary
Attributes inherited from ETL::Control
#adapter, #job_method, #options
Instance Method Summary collapse
-
#write(row) ⇒ void
Opens the database if needed and call the job’s method to insert one row at time.
Methods inherited from ETL::Destination
Methods inherited from ETL::Control
Constructor Details
This class inherits a constructor from Ductr::ETL::Control
Instance Method Details
#write(row) ⇒ void
This method returns an undefined value.
Opens the database if needed and call the job’s method to insert one row at time.
16 17 18 |
# File 'lib/ductr/sequel_base/basic_destination.rb', line 16 def write(row) call_method(adapter.db, row) end |