Simon Willison

Results 678 issues of Simon Willison

It turns out SQLite supports composite foreign keys: https://www.sqlite.org/foreignkeys.html#fk_composite Their example looks like this: ```sql CREATE TABLE album( albumartist TEXT, albumname TEXT, albumcover BINARY, PRIMARY KEY(albumartist, albumname) ); CREATE TABLE...

enhancement
research

It would be great if `csvs-to-sqlite` could quite happily churn through a multiple GB CSV file without using up all available RAM on a machine. https://plot.ly/python/big-data-analytics-with-pandas-and-sqlite/ has some good patterns...

My [sqlite-utils](https://github.com/simonw/sqlite-utils) library has evolved to the point where I think it would make a good foundation for the next version of `csvs-to-sqlite`. The main feature I'm excited about here...

enhancement

https://data.sfgov.org/Economy-and-Community/Mobile-Food-Facility-Permit/rqzj-sfat Say for example there's a `FoodItems` column in the CSV that has data in it like this: `Cold Truck: Cheeseburgers: Burgers: Chicken Bake: Chili Dogs: Hot Dogs: Corn Dogs:...

Consider this for example: https://san-francisco.datasettes.com/registered-business-locations-3d50679/Registered_Business_Locations_-_San_Francisco "NAICS Code" and " NAICS Code Description" are two columns that always reflect each other.

I'm processing a 100MB+ file at the moment and there's no indication of how long it will take.

enhancement

Quite a few options (like `--shape`) are only listed in the `--help` output. This isn't enough information - the README should be expanded.

enhancement
documentation

This should work: curl url-to-csv | csvs-to-sqlite - data.db

This tool has enough options now that it warrants more documentation than just the README and `--help`

I created https://csvs-to-sqlite-date-demo.now.sh/antiquities-317d506/actions.under.antiquities.act like this: $ csvs-to-sqlite actions.under.antiquities.act.csv antiquities.db -d date Using the CSV from here: https://github.com/fivethirtyeight/data/blob/master/antiquities-act/actions_under_antiquities_act.csv Just one problem: ![2018-04-24 at 9 02 am](https://user-images.githubusercontent.com/9599/39199456-564c2f68-479e-11e8-8bda-cb2693375648.png) It would be nice if...