tags:
- development
- dbeaver
- database
- postgres
- local related:
- ./naming-conventions.md
- ../../api/docker-compose.yml
- ../../api/README.md
DBeaver Local PostgreSQL
How to connect DBeaver to the local Autimit PostgreSQL database.
Requirements
- Docker Engine running in WSL
- DBeaver installed on the host machine
- Local PostgreSQL container running from the API project
Start Local PostgreSQL
From the API project:
cd ~/autimit/api
docker compose up -d postgres
Check that PostgreSQL is healthy:
docker compose ps postgres
Run migrations if needed:
bun db:migrate
Connection Settings
Create a new PostgreSQL connection in DBeaver with:
| Field | Value |
|---|---|
| Host | localhost |
| Port | 5432 |
| Database | autimit |
| Username | atmt_user |
| Password | atmt_user |
Find API Tables
After connecting:
- Open the
autimitdatabase. - Open
Schemas. - Open the
apischema. - Open
Tables. - Confirm the
userstable exists after migrations run.
Expected table path:
autimit.api.users
Troubleshooting
If DBeaver cannot connect, check that the container is running:
docker compose ps postgres
If the database was recreated, run migrations again:
bun db:migrate
If DBeaver does not show the api schema, refresh the connection or enable all schemas in the DBeaver navigator filters.