0.0.1 • Published 12 years ago
xml2orm v0.0.1
xml2orm
xml2orm reads database schema XML file and build ORM model available for Node.js.
Installing globally:
npm install xml2orm -gThat's it.
You need npm to be installed before running the command above.
Node.js ORM library:
xml2orm builds models for npm package ORM.
DBMS Support by ORM
- MySQL
- PostgreSQL
- Amazon Redshift
- SQLite
- MongoDB (beta, missing aggregation for now)
Usage:
xml2orm dumped_schema.xml output_directory_path [options]Command Parameters:
dumped_schema.xml : Schema XML file to be parsed.
output_directory_path : Directory path where you want to store the exported ORM model JavaScript files.
Available Options:
-h or --help Displays a list of commands and exits.
How to get dumped schema XML file?
MySQL
mysqldump command can export schema XML file:
mysqldump --xml --all-databases --no-data > dumped_schema.xml