Anchorage API reference
    Preparing search index...
    interface D1StorageOptions {
        binding: D1DatabaseBinding;
        domains?: Partial<StorageDomains>;
        id?: string;
        tablePrefix?: string;
    }
    Index

    Properties

    D1 binding from the Worker/DO environment.

    domains?: Partial<StorageDomains>

    Additional storage domains composed over the D1Store default, such as notifications and thread state, which @mastra/cloudflare-d1 does not ship, so they are flowsafe-owned D1 impls). Injected rather than imported so this lower layer never depends on signals/ (which imports do-runner) — build them with createSignalStorageDomains() and pass them here. Absent ⇒ the bare D1Store, byte-identical to before this seam existed.

    id?: string

    Storage instance id. Default: 'flowsafe'.

    tablePrefix?: string

    Table name prefix (letters, numbers, underscores).