Toshihiko
    Preparing search index...

    Interface AdapterLike

    Minimum structural contract required for Adapter type inference.

    interface AdapterLike {
        count: (query: never) => Promise<number>;
        deleteByQuery: (query: never) => Promise<AdapterOperationResult>;
        find: (
            query: never,
            options?: AdapterFindOptions,
        ) => Promise<AdapterFindResult>;
        insert: (
            model: never,
            connection: never,
            data: readonly never[],
        ) => Promise<Readonly<Record<string, DataValue>> | null>;
        update: (
            model: never,
            connection: never,
            primaryKey: DataRow,
            data: readonly never[],
        ) => Promise<AdapterOperationResult>;
        getDBName(): string;
    }
    Index
    count: (query: never) => Promise<number>

    Counts storage rows for a normalized Query.

    deleteByQuery: (query: never) => Promise<AdapterOperationResult>

    Deletes rows for a normalized Query.

    find: (query: never, options?: AdapterFindOptions) => Promise<AdapterFindResult>

    Finds storage rows for a normalized Query.

    insert: (
        model: never,
        connection: never,
        data: readonly never[],
    ) => Promise<Readonly<Record<string, DataValue>> | null>

    Inserts one row and may return generated storage values.

    update: (
        model: never,
        connection: never,
        primaryKey: DataRow,
        data: readonly never[],
    ) => Promise<AdapterOperationResult>

    Updates one located row.