Db3 config is a tool for syncing SQL database structure with JSON config.
Why do I need it?
To store your database structure as JSON and sync it with real database.
Init
var db = var db3Config = db
.pull(done)
Reads data from db into JSON.
db3Config
.diff(config, done)
Calculates diff
db3Config
.push(diff, done)
Apply diff to the db
db3Config
Config format
"table": "user": "field": "id": true //will be bigint primary key, auto_increment "username": "text" "password": "varchar(32)" "subscribed": "dataType": "tinyint" "default": 0 "key": "subscribed": true