chore(coderd/database/gen/dump): add optional DB_DUMP_CONNECTION_URL (#16243)

This commit is contained in:
Mathias Fredriksson
2025-01-23 18:53:24 +02:00
committed by GitHub
parent 5f4ff58f84
commit f27e73d21a
2 changed files with 21 additions and 4 deletions
+5
View File
@@ -72,6 +72,11 @@ the following tools by hand:
- [`pg_dump`](https://stackoverflow.com/a/49689589)
- on macOS, run `brew install libpq zstd`
- on Linux, install [`zstd`](https://github.com/horta/zstd.install)
- PostgreSQL 13 (optional if Docker is available)
- *Note*: If you are using Docker, you can skip this step
- on macOS, run `brew install postgresql@13` and `brew services start postgresql@13`
- To enable schema generation with non-containerized PostgreSQL, set the following environment variable:
- `export DB_DUMP_CONNECTION_URL="postgres://postgres@localhost:5432/postgres?password=postgres&sslmode=disable"`
- `pkg-config`
- on macOS, run `brew install pkg-config`
- `pixman`