npm.io
0.0.3 • Published 10 years agoCLI

excel-sql

Licence
MIT
Version
0.0.3
Deps
5
Vulns
5
Weekly
0
Stars
4

excel-sql

npm version

Node.js script to read an Excel spreadsheet into a PostgreSQL database.

$ npm install -g excel-sql

Example:

$ excel-sql MySpreadsheet.xlsx
Creating database MySpreadsheet
Creating table Sheet1
Inserting 171 rows
Creating table Sheet2
Inserting 0 rows

Uses the fabulous xlsx library for parsing the Excel spreadsheet.

It does some simple regular expression-based type inference, automatically distinguishing between TEXT, INTEGER, and REAL, as well as some formats of DATE and TIME.

To-do

  • Support more types in the type inference part
  • Infer foreign relationships if possible

License

Copyright 2016 Christopher Brown. MIT Licensed

Keywords