Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
midwire opened this issue Apr 20, 2018 · 0 comments
Labels

Comments

@midwire
Copy link
Owner

midwire commented Apr 20, 2018

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.

@midwire midwire mentioned this issue Apr 21, 2018
2 tasks
@midwire midwire mentioned this issue Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant