API reference › @evolu/common › local‑first/Query

Query helpers, execution, and caching.

Functions

FunctionDescription
applyPatches-
evoluJsonArrayFromAn improved Evolu version of Kysely's SQLite jsonArrayFrom helper.
evoluJsonBuildObjectAn improved Evolu version of Kysely's SQLite jsonBuildObject helper.
evoluJsonObjectFromAn improved Evolu version of Kysely's SQLite jsonObjectFrom helper.
getJsonObjectArgs-
makePatchesWe detect only changes in the whole result and in-place edits. In the future, we will add more heuristics. We will probably not implement the Myers diff algorithm because it's faster to rerender all than to compute many detailed patches. We will only implement logic a developer would implement manually, if necessary.
parseSqliteJsonArray-

Interfaces

InterfaceDescription
ReplaceAllPatch-
ReplaceAtPatch-
Row-

Type Aliases

Type AliasDescription
InferRow-
KyselyNotNullNarrows a column to non-null with Kysely's $narrowType.
Patch-
Queries-
QueriesToQueryRows-
QueriesToQueryRowsPromises-
QueryA type-safe SQL query.
QueryRowsRows returned by a query.
RowsByQueryMap-

Variables

VariableDescription
kyselyJsonIdentifierA unique identifier prepended to JSON-encoded strings. This allows safe detection and parsing of only those columns that require JSON.parse.
kyselySql-