-
-
Save vlntsolo/904ee7496d88099577521f22582a4c1c to your computer and use it in GitHub Desktop.
CloudSQL postgres connection string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For async driver user postgresql+asyncpg | |
DB_URL=postgresql://<DB_USER>:<DB_USER_PASS>@/<DB_NAME>?host=/cloudsql/<INSTANCE_CONNECTION_NAME>/ | |
# <INSTANCE_CONNECTION_NAME> has the following format <cloud_project>:<region_>:<db_instance_name> (e.g. cloudproject_demo:europe-west2:cloudrun-test-db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment