Skip to main content

Type Alias: IDatabaseConfig\<TSchema\>

Type Alias: IDatabaseConfig<TSchema>

type IDatabaseConfig<TSchema> = {
  api?: DatabaseApiConfig<TSchema>;
  hooks?: { readonly [TTable in SchemaTableName<TSchema>]?: EntityHooks<TTable> };
  schema: TSchema;
};

Configuration for one schema-bound DatabasePlugin instance.

Type Parameters

Type Parameter
TSchema extends Schema

Properties

api?

readonly optional api: DatabaseApiConfig<TSchema>;

Generated HTTP CRUD is enabled for all tables by default, using the app's service principal. Every admitted caller receives the enabled operations; no per-user or per-row authorization is applied. This plugin does not support OBO. Use custom routes for application-specific authorization.

Set false to disable routes, { writes: false } for reads only, or { tables: ["notes"] } to expose only selected tables. To disable delete, use { writes: { operations: ["create", "update"] } }.

Default Value

true

hooks?

readonly optional hooks: { readonly [TTable in SchemaTableName<TSchema>]?: EntityHooks<TTable> };

schema

readonly schema: TSchema;

Databricks Developer Hub

Ready to ship your next agentic app in minutes?

Read docs