Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The trick sqlite-utils uses is to automatically create a SQLite table schema that matches the shape of the JSON object - specifically of you give it a JSON array of objects.

It doesn't handle streaming JSON out of the box though, so you'd need to write some custom code on top of something like ijson to avoid loading the entire JSON file into memory first.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: