Class: Remi::DataTarget::Postgres

Inherits:
Remi::DataSubject show all
Includes:
Remi::DataSubject::DataTarget, Remi::DataSubject::Postgres
Defined in:
lib/remi/data_subject/postgres.rb

Overview

VERY PRELIMINARY IMPLEMENTAtION - ONLY LOADS TO TEMP TABLES IT IS THEN UP TO THE USER TO DO ELT TO LOAD THE FINAL TABLE

Instance Attribute Summary

Attributes inherited from Remi::DataSubject

#fields

Instance Method Summary collapse

Methods included from Remi::DataSubject::Postgres

#connection

Methods included from Remi::DataSubject::DataTarget

#load

Methods inherited from Remi::DataSubject

#df, #df=, #field_symbolizer

Constructor Details

#initialize(*args, **kargs, &block) ⇒ Postgres

Returns a new instance of Postgres.



72
73
74
75
# File 'lib/remi/data_subject/postgres.rb', line 72

def initialize(*args, **kargs, &block)
  super
  init_postgres(*args, **kargs, &block)
end

Instance Method Details

#load!Object

Public: Performs the load operation, regardless of whether it has already executed.

Returns true if the load operation was successful



81
82
83
84
85
86
87
# File 'lib/remi/data_subject/postgres.rb', line 81

def load!
  @logger.info "Performing postgres load to table #{@table_name}"
  create_target_table
  load_target_table

  true
end