Class: Ductr::SequelBase::BufferedDestination

Inherits:
ETL::BufferedDestination show all
Defined in:
lib/ductr/sequel_base/buffered_destination.rb

Overview

A destination control that accumulates rows in a buffer to write them by batch.

Instance Attribute Summary

Attributes inherited from ETL::BufferedDestination

#buffer

Attributes inherited from ETL::Control

#adapter, #job_method, #options

Instance Method Summary collapse

Methods inherited from ETL::BufferedDestination

#buffer_size, #close, #flush_buffer, #write

Methods inherited from ETL::Destination

#close, #write

Methods inherited from ETL::Control

#call_method, #initialize

Constructor Details

This class inherits a constructor from Ductr::ETL::Control

Instance Method Details

#on_flushvoid

This method returns an undefined value.

Open the database if needed and call the job’s method to run the query.



14
15
16
# File 'lib/ductr/sequel_base/buffered_destination.rb', line 14

def on_flush
  call_method(adapter.db, buffer)
end