Skip to content

Instantly share code, notes, and snippets.

@vlntsolo
Created July 23, 2022 16:51
Show Gist options
  • Save vlntsolo/904ee7496d88099577521f22582a4c1c to your computer and use it in GitHub Desktop.
Save vlntsolo/904ee7496d88099577521f22582a4c1c to your computer and use it in GitHub Desktop.
CloudSQL postgres connection string
# 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