{"repo":"leapfrogtechnology/sync-db","free":true,"listed":false,"github":"https://github.com/leapfrogtechnology/sync-db","clone":"git clone https://github.com/leapfrogtechnology/sync-db.git","description":"Utility to synchronize relational database objects across databases.","language":"TypeScript","stars":35,"topics":["database","sync","db","sql","database-objects","hacktoberfest","migrations","database-migrations","cli"],"license":"MIT","category":"databases-storage","readme_excerpt":"sync-db Command line utility to synchronize and version control relational database objects across databases. Installation Using npm: You can install it globally as well. Drivers Installation You'll need to install the database driver specific to your project separately. For instance - if your project uses MSSQL, you will need to do: This utility uses Knex under the hood so these are the supported drivers. Usage You can use sync-db both as a CLI utility and programmatically. Commands When installed globally, you can invoke the CLI directly. The CLI exposes a single command sync-db that runs synchronize operation based on your configuration. - sync-db - [ sync-db help [COMMAND] ](#sync-db-help-command) - sync-db make NAME - sync-db make-publish - sync-db migrate-latest - sync-db migrate-list - sync-db migrate-rollback - sync-db prune - sync-db synchronize sync-db See code: src/commands/index.ts sync-db help [COMMAND] display help for sync-db See code: @oclif/plugin-help sync-db make NAME Make migration files from the template. See code: src/commands/make.ts sync-db make-publish Publish migration templates files. See code: src/commands/make-publish.ts sync-db migrate-latest Run the migrations up to the latest changes. See code: src/commands/migrate-latest.ts sync-db migrate-list List all the migrations. See code: src/commands/migrate-list.ts sync-db migrate-rollback Rollback migrations up to the last run batch. See code: src/commands/migrate-rollback.ts sync-db prune Drop all t","default_branch":null,"files":null,"tree":[],"storefront":"/r/leapfrogtechnology","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/leapfrogtechnology/sync-db/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}