____ ____ _____/ / /_ / __ `/ __ / __ \ / /_/ / /_/ / /_/ / \__, /\__,_/_.___/ /_/ quickly start and manage databases
npm install qudbqudb
====
quickly start and manage databases




1. init
2. start
3. status / ps
4. help
QUDB can be installed by npm, or if you don't want to install it, it can be used with npx.
npm install -g qudb
qdb --help
# no install
npx qudb --help # replace qdb with npx qudb
``start up a postgres database
qdb start postgres
`
- half the projects on the internet assume you have mongo or postgres or mysql or something setup and running
- legit no one likes to have that on their computer, even less people really want to clean out their databases or keep them up to date or keep them installed
- use docker to make any db you need, using volumes stored at a consistent location to allow for persistence
- allow for temporary development sessions, where qudb will save your data until you want to erase it or whatever
You can also save credentials in a folder so you don't need to remember a name
qudb.yaml
`yaml`
name: my_db
type: postgres | redis | mysql (file an issue for more types!
username: root
password: password
save: true
store: path to qudb file directory
data: ./.qudb/data # default
exposedPorts:
- hostPort: 5432
containerPort: 5432
Now, you can streamline your commands - no more name needed
```
qudb start
qudb stop
qudb status
yes indeed! I'm just lazy of looking up the right docker command for each db type, and it's getting real frustrating