Skip to content

GTInventory/IMS-imports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IMS-imports

Code for loading different data dumps into the IMS API.

sql-import.js

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

About

Code for loading different data dumps into the IMS API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published