Anchorage API reference
    Preparing search index...

    The D1 database subset both signal domains use.

    interface SignalDatabase {
        batch?(
            statements: SignalStatement[],
        ): Promise<{ meta?: { changes?: number }; results: unknown[] }[]>;
        prepare(query: string): SignalStatement;
    }
    Index

    Methods

    Methods

    • D1's transactional prepared-statement batch. Optional because the simpler signal domains need only prepare; notification schema migration requires it so rollback writers cannot interleave with ordinal backfill. The schedules domain reads results off a batch element and off .all(), so an element carries the rows a D1Result always carries; a hand-written adapter that returns only meta fails there at runtime.

      Parameters

      Returns Promise<{ meta?: { changes?: number }; results: unknown[] }[]>