Setu-TS
    Preparing search index...

    Interface PrismaDatabaseOptions

    The arm selecting the Prisma adapter.

    options.prismaClient is required by the union rather than optional on a nested bag, so a registration that forgets it is a compile error instead of a connect() throw — the same guarantee the 'custom' arm gives adapter.

    import { PrismaPg } from '@prisma/adapter-pg';
    import { PrismaClient } from './generated/prisma/client.ts';

    DatabasePlugin({
    type: 'prisma',
    options: {
    prismaClient: new PrismaClient({
    adapter: new PrismaPg({ connectionString: config.getOrThrow('DATABASE_URL') }),
    }),
    },
    });

    0.2.0

    interface PrismaDatabaseOptions {
        name?: string;
        options: PrismaAdapterOptions;
        readiness?: DatabaseReadinessOptions;
        type: "prisma";
    }

    Hierarchy (View Summary)

    Index
    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.

    0.1.0

    Prisma adapter configuration; prismaClient is required.

    Optional schema readiness, evaluated by this connection's health indicator.

    0.10.0

    type: "prisma"

    Selects the Prisma arm.