Skip to content

Interface: LakebaseConnection

Fully-resolved Lakebase Postgres connection.

optional branch?: string

Branch id within the project. Defaults to the project’s default branch.

LakebaseConnectionInputs.branch


optional database?: string

Postgres database name (PGDATABASE). Defaults to databricks_postgres.

LakebaseConnectionInputs.database


optional endpoint?: string

Canonical endpoint resource path (projects/.../endpoints/...), from LAKEBASE_ENDPOINT. Defaults to the branch’s read-write endpoint.

LakebaseConnectionInputs.endpoint


optional host?: string

Postgres hostname (PGHOST). Defaults to the resolved endpoint’s host.

LakebaseConnectionInputs.host


port: number

Postgres port (PGPORT). Defaults to 5432.

LakebaseConnectionInputs.port


optional project?: string

Lakebase project id. Resolved from the workspace when unset.

LakebaseConnectionInputs.project


sslMode: "require" | "disable" | "prefer"

Postgres TLS mode (PGSSLMODE). Defaults to require.

LakebaseConnectionInputs.sslMode