jsonator5

1.0.0 • Public • Published

jsonator5

Easily turn SQL databases content into JSON files

FILENAME=test/fixtures.json DBHOST=localhost DBNAME=youdb DBUSER=dbusr DBPASS=dbpass jsonator5 languages#1
  • If FILENAME is omitted it'll use fixtures.json in the current directory.
  • If any of the DB params are omitted it'll take the DB driver defaults.

The last param is <table name>#<row ID> you want to add to the JSON file.

It will also add any foreign key relation needed.

Readme

Keywords

none

Package Sidebar

Install

npm i jsonator5

Weekly Downloads

0

Version

1.0.0

License

LGPL-3.0-or-later

Unpacked Size

30.5 kB

Total Files

4

Last publish

Collaborators

  • luispablo