Setu-TS
    Preparing search index...

    Interface ID1PreparedStatement

    A prepared D1 statement.

    0.2.0

    interface ID1PreparedStatement {
        all<T = Record<string, unknown>>(): Promise<D1Result<T>>;
        bind(...values: readonly unknown[]): ID1PreparedStatement;
        first<T = Record<string, unknown>>(): Promise<T | null>;
        run<T = Record<string, unknown>>(): Promise<D1Result<T>>;
    }
    Index
    • Runs the statement and returns the first row.

      Type Parameters

      • T = Record<string, unknown>

        The row shape

      Returns Promise<T | null>

      The first row, or null when there are none