I'm developing a FastAPI middleware app (Databricks App) that connects to both a SQL Warehouse (Unity Catalog) and a Lakebase PostgreSQL instance using async SQLAlchemy. The app works perfectly when deployed to Databricks, but I'm trying to set up local development using databricks apps run-local on Windows 11 with Python 3.11.
What works:
databricks apps run-local starts the app and proxy successfully
Databricks CLI authentication works (databricks-cli auth type)
SQL Warehouse / Unity Catalog endpoints work perfectly locally
Lakebase SDK calls succeed — generate_database_credential(), get_database_instance(), and current_user.me() all return valid responses
The Lakebase PostgreSQL DNS resolves and port 5432 is reachable
From my understanding, nowhere in the databricks documentation does it explain that lakebase postgres is supported for local development. Does this mean I can't use my FastAPI endpoints that use lakebase postgres tables and run them locally? Is the only way to test them when the app is deployed on databricks?
Any feedback is appreciated.