Setu-TS
    Preparing search index...

    Interface DrizzleDatabase<TDatabase>

    Opaque configuration for one exact Drizzle database and async transaction bridge.

    The optional private brand makes ordinary structural literals, spreads, and clones statically incompatible. Runtime validity is stronger: only objects whose identity is registered in this module's private WeakMap are accepted.

    0.2.0

    interface DrizzleDatabase<TDatabase extends object> {
        "[DRIZZLE_DATABASE_IDENTITY_BRAND]": true;
        "[DRIZZLE_DATABASE_TYPE_BRAND]": (database: TDatabase) => TDatabase;
    }

    Type Parameters

    • TDatabase extends object

      Exact application Drizzle database type

    Hierarchy (View Summary)

    Index
    "[DRIZZLE_DATABASE_IDENTITY_BRAND]": true

    Compile-time opacity; runtime state lives in a private WeakMap.

    "[DRIZZLE_DATABASE_TYPE_BRAND]": (database: TDatabase) => TDatabase

    Compile-time opacity; runtime state never lives on this object.