@earth-app/collegedb
    Preparing search index...

    Type Alias ReadConsistency

    ReadConsistency:
        | { mode: "primary" }
        | { bookmarks?: Record<string, string>; mode: "session" }
        | { mode: "eventual" }

    Read guarantee a caller asks for, per call.

    • primary: the first query of a D1 session goes to the primary and the session continues in sequence. This is not promised to be primary-only for the whole operation unless the adapter says so.
    • session: resume from bookmarks, keyed by database id; with none, the first query goes to any instance (first-unconstrained). Needs a provider with sessions, otherwise the call throws CONSISTENCY_UNSUPPORTED.
    • eventual: unconstrained. Every provider accepts it.

    Writes ignore it. Leaving it off keeps the call exactly as it was.

    1.4.0