Skip to main content

Framework connection examples

The examples below show how to connect to your Lakebase database from different programming languages and frameworks. You can also get connection snippets for these languages from the Connect dialog in the Lakebase App.

Connection dialog examples

note

These examples use native Postgres password authentication. Connections using Databricks identities or service principals require OAuth token rotation. See Token rotation examples.

Connection examples

Bash
psql 'postgresql://role_name:password@ep-abc-123.databricks.com/databricks_postgres?sslmode=require'
note

For applications using OAuth tokens, implement automatic token rotation. See Token rotation examples.

Next steps