@conversu/db-sync
v1.0.0
Published
Db syncronizer for development purposes
Downloads
2
Maintainers
Readme
DB-SYNC
A simple developer tool to synchronize POSTGRES local databases for node apis.
How to use
Install using npm or yarn as development dependency:
npm i @conversu/db-sync -D
yarn add @conversu/db-sync -D
Register at you package.json as script:
{
"scripts": {
"db:export": "node ./node_modules/@conversu/db-sync/index.mjs db:export mode=debug output=\"./\" env=\"./.env.development\" filename=db-data.sql"
}
}
Run as you need:
npm run db:export
Arguments
node ./index.mjs <operation> output="C:/your/project/path" env="C:/your/project/path/.env.development" filename=example.sql mode=<debug|quiet>
Required
Optional
Operations
Author
Pablo Woinarovicz Ramos