メインコンテンツに移動

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 ParameterDefault type
TSchema extends SchemaDefaultDatabaseSchema

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 optional schema: TSchema;

Explicit schema override. When omitted, setup loads the named schema export from config/database/schema.ts under the application's working directory. Missing or invalid declarations fail setup before pool creation.

Databricks Developer Hub

次のエージェント型アプリを数分でリリースする準備はできていますか?

ドキュメントを読む