<@ULVA73B9P> what value should I set `PREFECT_SERV...
# ask-marvin
b
@Marvin what value should I set
PREFECT_SERVER_DATABASE_DRIVER
to when using postgres, but not setting
PREFECT_SERVER_DATABASE_CONNECTION_URL
or
PREFECT_API_DATABASE_CONNECTION_URL
m
thought for 20.2 seconds
When using PostgreSQL with Prefect, you should set
PREFECT_SERVER_DATABASE_DRIVER
to either: -
postgresql
(standard choice) -
postgresql+psycopg2
(if you specifically want to use the psycopg2 driver) The first option (
postgresql
) is the most common and recommended choice. When you set just the driver, Prefect will use it along with other database-related environment variables (like
PREFECT_SERVER_DATABASE_USERNAME
,
PREFECT_SERVER_DATABASE_PASSWORD
, etc.) to construct the full connection URL internally. For example, you might set it like this:
Copy code
bash
export PREFECT_SERVER_DATABASE_DRIVER="postgresql"
You can find more details about database configuration settings in the Prefect settings reference documentation.
b
Well that was wrong.
Copy code
Input should be 'postgresql+asyncpg' or 'sqlite+aiosqlite'