Skip to content

Use Kiba ETL to provide a cleaner solution for building sqlite tables and csv files. #5

@midwire

Description

@midwire

I’ve been using Kiba ETL for a client project and it is a great way to separate ETL concerns.

NOTES: I still envision using a rake task to download GeoNames data, but then to use the following ETL hierarchy to move that data into both SQLite3 tables and *.csv files for each of the following:

  • Country
  • State
  • County
  • Zipcode

Potential ETL Hierarchy

Under the etl or lib/etl directory:

  • csv_source.rb - to read the downloaded GeoNames data
  • csv_destination.rb - to write discrete CSV files
  • country_table_destination.rb - SQLite table destination
  • state_table_destination.rb - SQLite table destination
  • county_table_destination.rb - SQLite table destination
  • zipcode_table_destination.rb - SQLite table destination
  • free_zipcode_data.etl - the ETL source file

NOTE: I’m open to other suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions