Class: Remi::DataTarget::Postgres
- Inherits:
-
Remi::DataTarget
- Object
- Remi::DataSubject
- Remi::DataTarget
- Remi::DataTarget::Postgres
- Includes:
- 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
Instance Method Summary collapse
-
#initialize(*args, **kargs, &block) ⇒ Postgres
constructor
A new instance of Postgres.
-
#load! ⇒ Object
Public: Performs the load operation, regardless of whether it has already executed.
Methods included from Remi::DataSubject::Postgres
Methods inherited from Remi::DataTarget
Methods inherited from Remi::DataSubject
#df, #df=, #enforce_types, #field_symbolizer
Constructor Details
#initialize(*args, **kargs, &block) ⇒ Postgres
Returns a new instance of Postgres.
70 71 72 73 |
# File 'lib/remi/data_subject/postgres.rb', line 70 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
79 80 81 82 83 84 85 |
# File 'lib/remi/data_subject/postgres.rb', line 79 def load! @logger.info "Performing postgres load to table #{@table_name}" create_target_table load_target_table true end |