@itsaorg/dbms-base
    Preparing search index...

    Interface DbmsEventMap

    Maps each DBMS event name to the payload a listener receives.

    💡 The event name selects the payload type, so a listener cannot read the wrong fields.

    import type { DbmsEventMap } from "@itsaorg/dbms-base";

    const opened: DbmsEventMap["store:open"] = { storeType: "docstore" };
    interface DbmsEventMap {
        "query:end": { queryId: string };
        "query:error": { message: string };
        "query:start": { queryId: string };
        "store:close": { storeType: string };
        "store:error": { message: string };
        "store:open": { storeType: string };
        "transaction:abort": { transactionId: string };
        "transaction:begin": { transactionId: string };
        "transaction:commit": { transactionId: string };
        "transaction:error": { message: string };
    }
    Index
    "query:end": { queryId: string }

    A query finished.

    "query:error": { message: string }

    A query reported a failure.

    "query:start": { queryId: string }

    A query started.

    "store:close": { storeType: string }

    A store finished closing.

    "store:error": { message: string }

    A store reported a failure.

    "store:open": { storeType: string }

    A store finished opening.

    "transaction:abort": { transactionId: string }

    A transaction aborted.

    "transaction:begin": { transactionId: string }

    A transaction started.

    "transaction:commit": { transactionId: string }

    A transaction committed.

    "transaction:error": { message: string }

    A transaction reported a failure.