opendenton / denton_data

A prototype of an ETL and API for Open Denton
https://www.opendenton.com/denton_data
3 stars 6 forks source link

Auto generate #7

Closed PopularDemand closed 7 years ago

PopularDemand commented 7 years ago

The idea here is to be able to run DataImporter.get_sampling(resource_id, table_name) and have a migration generated. The user can then alter the migration to store the data as desired, then run a function (currently unwritten) that generates the class, grabs the data with the DataImporter, saves to postgres, adds routes, and cleans up.

Currently only the migration generation is written. No need to merge PR.

newswim commented 7 years ago

LGTM!