Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

databricks-lakebase

БесплатноБез исполняемых скриптовНе проверен

Databricks Lakebase Postgres: projects, scaling, connectivity, Lakebase synced tables, and Data API. Use when asked about Lakebase databases, OLTP storage, or…

databricksот databricks★ 421 звезда на GitHub

Об этом скилле

Lakebase Postgres Autoscaling

FIRST: Use the parent databricks-core skill for CLI basics, authentication, and profile selection.

Lakebase is Databricks' serverless Postgres-compatible database, available on AWS and Azure (GA) and on GCP (Beta). It provides fully managed OLTP storage with autoscaling, branching, and scale-to-zero.

Regions: Lakebase runs only in the commercial regions listed in Region availability (check the page for the user's cloud). It isn't available on AWS GovCloud, and the Azure list has no Azure Government or Azure China regions. If the workspace is in one of these clouds or an unlisted region, tell the user that Lakebase isn't available there. Don't try to create a project.

Provisioned Lakebase no longer exists. Never create it. The old Provisioned tier (static, non-scalable Postgres; databricks database CLI / w.database SDK) is being migrated to Autoscaling over summer 2026, with no customer action required. Lakebase today is Autoscaling-only (databricks postgres / w.postgres). Do not attempt to create Provisioned instances; if a user asks for one, tell them Provisioned instances don't exist anymore and point them to Autoscaling. Treat the legacy database resource key in app configs as retired, and migrate to the postgres resource key. For the legacy DAB synced_database_tables resource, use the postgres_synced_tables bundle resource or the databricks postgres create-synced-table CLI flow instead (see the Common Issues row and references/synced-tables.md).

For context when reading older configs or docs, here is how the retired Provisioned tier maps to Autoscaling:

Aspect Provisioned (retired) Autoscaling (current)
CLI group databricks database databricks postgres
Top-level resource Instance Project
Capacity CU_1–CU_8 (16 GB/CU) 0.5–112 CU (2 GB/CU)
Branching Not supported Full support
Scale-to-zero Not supported Configurable
HA Readable secondaries 1–3 secondaries + read replicas
Data API Not available PostgREST HTTP API
Cloud AWS only AWS and Azure (GA), GCP (Beta)

Compliance: Supports HIPAA, C5, TISAX, or None. Before any PHI goes into Lakebase, apply the HIPAA gate below.

HIPAA Gate (PHI)

HIPAA coverage comes from the workspace: the compliance security profile with the HIPAA standard, plus a Business Associate Agreement. Confirm both with the user before PHI goes in. Then:

  • Preview features: do not use a Preview or Beta feature (for example, Lakehouse Sync) for PHI unless it is listed for your region in Regional support for features. Check the list each time.
  • Existing projects: a project that was running when HIPAA was turned on has no HIPAA audit logging until its compute restarts. Databricks does not restart it for you. Restart each compute.
  • No PHI in metadata: never put PHI in database, schema, table, column, or role names, in tags, or in other customer-defined fields. These appear in audit logs and system metadata, and Databricks cannot remove them later.
  • No PHI in SQL text: pass PHI values as query parameters, never as literals. Audit logs record statement text.
  • No PHI in logs or tickets: keep PHI out of app logs, error messages, screenshots, diagnostic output, and support requests.
  • Least privilege: grant each role only the schemas, tables, and operations it needs.

Sources: HIPAA compliance for Lakebase, Enable HIPAA compliance.

Row-Level Security and Data API: Must-Follow Rules

Apply these whenever a design has per-user rows, RLS, or the Data API. Details and tests are in connectivity.md.

  • Many end users: a branch holds at most 500 Postgres roles. Never create one role per app user. The app connects as its service principal over a pool and sets the user per transaction: SELECT set_config('app.user', $1, true).
  • RLS on a setting: wrap it in NULLIF: USING (owner_email = (SELECT NULLIF(current_setting('app.user', true), ''))). On a reused pooled connection, an unset value reads '', not NULL. Also run ALTER TABLE ... FORCE ROW LEVEL SECURITY, because the table owner bypasses RLS otherwise.
  • Testing RLS: never test as the project owner or databricks_superuser, and never grant databricks_superuser to a teammate for local work. Both bypass RLS. Use a role with only USAGE on the app's schema and the table privileges it needs.
  • Views over RLS tables: create them WITH (security_invoker = true), and grant the caller SELECT on the base table too. A default view checks RLS as its owner, so every caller sees all rows.
Полный SKILL.md на GitHub

Установить databricks-lakebase в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlassets/databricks.pngassets/databricks.svgreferences/computes-and-scaling.mdreferences/connectivity.mdreferences/lakehouse-sync.mdreferences/medallion-from-cdc.mdreferences/off-platform.mdreferences/pgvector.mdreferences/synced-tables.md

FAQ

Что делает скилл databricks-lakebase?

Databricks Lakebase Postgres: projects, scaling, connectivity, Lakebase synced tables, and Data API. Use when asked about Lakebase databases, OLTP storage, or connecting apps to Postgres on Databricks.

Как установить скилл databricks-lakebase?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл databricks-lakebase запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить databricks-lakebase с