interface DatabaseConnectionOptions
Since 0.2.0

The options every DatabasePluginOptions arm shares.

Properties

Since 0.1.0
readonly
optional
name: string

Named connection for multi-database support. Defaults to 'default'.

When a name is provided, the service registers under database.<name> (e.g. database.primary); otherwise it uses the canonical CAPABILITIES.DATABASE token. Dot notation, not a colon: createCapabilityToken rejects colons.

Since 0.1.0
readonly
optional
options: DatabaseAdapterOptions

Adapter-specific options.

On the 'custom' arm the adapter is already constructed, so only the options the service reads still apply — logQueries routes a custom adapter's data sources through the same single logging wrapper every built-in adapter uses.

Usage

import { type DatabaseConnectionOptions } from "database-plugin/src/index.ts";