Module: Remi::DataSubject::DataTarget
- Included in:
- Remi::DataTarget::CsvFile, Remi::DataTarget::DataFrame, Remi::DataTarget::Postgres, Remi::DataTarget::Salesforce, Remi::DataTarget::SftpFile
- Defined in:
- lib/remi/data_subject.rb
Instance Method Summary collapse
-
#load ⇒ Object
Public: Loads data to the target.
-
#load! ⇒ Object
Public: Performs the load operation, regardless of whether it has already executed.
Instance Method Details
#load ⇒ Object
Public: Loads data to the target. This is automatically called after all transforms have executed, but could also get called manually. The actual load operation is only executed if hasn’t already.
Returns true if the load operation was successful.
69 70 71 72 73 |
# File 'lib/remi/data_subject.rb', line 69 def load return true if @loaded || df.size == 0 @loaded = load! end |
#load! ⇒ Object
Public: Performs the load operation, regardless of whether it has already executed.
Returns true if the load operation was successful
79 80 81 82 83 |
# File 'lib/remi/data_subject.rb', line 79 def load! raise NoMethodError, "#{__method__} not defined for #{self.class.name}" false end |