Code for loading different data dumps into the IMS API.
Useful for importing School of Math inventory DB dumps to the API. Currently, it works by converting a MySQL database dump to an in-memory SQLite database, then batch-creating the attributes, types, and items needed via the IMS-backend API.
Usage:
./sql-import.js <ANSI SQL dump> <IMS endpoint>
The SQL dump must have been created using the following mysqldump
flags:
mysqldump --skip-extended-insert --compact [other options]... DB_name > dump.sql