Class: BeetleETL::DropStage

Inherits:
Step
  • Object
show all
Defined in:
lib/beetle_etl/steps/drop_stage.rb

Instance Attribute Summary

Attributes inherited from Step

#table_name

Instance Method Summary collapse

Methods inherited from Step

#database, #dependencies, #external_source, #initialize, #name, step_name

Methods included from Naming

#stage_table_name, #stage_table_name_sql, #target_table_name, #target_table_name_sql

Constructor Details

This class inherits a constructor from BeetleETL::Step

Instance Method Details

#runObject



4
5
6
7
8
# File 'lib/beetle_etl/steps/drop_stage.rb', line 4

def run
  database.execute <<-SQL
    DROP TABLE IF EXISTS #{stage_table_name_sql}
  SQL
end