cachedResult
The result of a one-shot read the cache answered, as a fake of the app's own repository returns it: PostgrestResult.isFromCache reads true, PostgrestResult.fetchedAt the time given, to the millisecond, and PostgrestResult.hasPendingMutations the flag given. The library stamps a read's result in headers PostgREST never sends, and this one carries the same stamp; a result built with PostgrestResult(data, Headers.Empty, supabase.postgrest) carries none, and reads as a result supabase-kt returned itself.
Parameters
the rows, as the JSON text a read returns.
a client with Postgrest installed, built on a Ktor MockEngine, since supabase-kt's Postgrest needs a client with an engine.
when the rows were fetched from the server.
whether a queued write changed a row shown.
The result of a one-shot read the cache answered that names the rows a queued write changed: cachedResult, with PostgrestResult.pendingRowKeys reading pendingRowKeys and PostgrestResult.hasPendingMutations reading true exactly when it is not empty.
Parameters
the rows, as the JSON text a read returns.
a client with Postgrest installed, built on a Ktor MockEngine.
when the rows were fetched from the server.
the primary keys of the rows a queued write added, changed or removed, each an object of the table's key columns.