luispablo / jsonizer

Easily turn SQL databases content into JSON files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsonizer

Easily turn SQL databases content into JSON files

FILENAME=test/fixtures.json DBHOST=localhost DBNAME=youdb DBUSER=dbusr DBPASS=dbpass jsonizer 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.

About

Easily turn SQL databases content into JSON files

License:GNU Lesser General Public License v2.1


Languages

Language:JavaScript 100.0%