Skip to content

rumyax/dbtool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D B T

CLI tool to copy, run SQL,
and connect to PostgreSQL databases

Add repo root to PATH.
chmod +x dbt if UNIX.
Create conf.json before using.
Use conf.template.json as an example.
By default:

  • host is localhost
  • port is 5432
  • user is postgres

How to use:

dbt copy --use-cache --from "dev" --to "local"
dbt run --on "local" --file "./migration.sql"
dbt connect --to "local"

About

CLI tool to copy, run SQL, and connect to PostgreSQL databases

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published