Closed sgelbart closed 2 months ago
group name | covered percent | covered lines | lines of code |
---|---|---|---|
Total | 58.316 | 1974 | 3385 |
@holdenmitchell regarding zips - they're currently created using upsert. I did it this way because I planned on using the wildcard * to pull in all zips for whole counties at a time, in which case that table would just be self populating based on whichever counties Austin wanted zip data for long term. That list is also zip code tabulations (not might not be all zip codes).
I didn't use the wildcard in the end so I just have the list of OKC zips hardcoded as a constant (ZipCode:LZIPS_OKLAHOMA_COUNTY). It's not much harder to add the wildcard functionality, or I could add a column for counties and seed the DB with that, or both, whatever you prefer.
Also added a sample call to the PR. There's sample code in the import_spec.rb file as well (not the clearest spot). Can add to the readme too if you want.
@sgelbart Thanks! I will get this merged in after I run a couple of imports
Work Done:
Census API Wrapper - https://app.asana.com/0/1206959369083189/1207304790278735/f Build out census Schema - https://app.asana.com/0/1206959369083189/1207304790278737/f Census Data Importers: Statistic - https://app.asana.com/0/1206959369083189/1207304790278739/f Census Data Importers: Data - https://app.asana.com/0/1206959369083189/1207304790278741/f
Sample calls
Useful SQL for testing: