xml2orm

0.0.1 • Public • Published

xml2orm

NPM version

xml2orm reads database schema XML file and build ORM model available for Node.js.

Installing globally:

npm install xml2orm -g

That'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

Readme

Keywords

none

Package Sidebar

Install

npm i xml2orm

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • kulikala