API Reference / @evolu/common / Evolu/Internal / Query
Type Alias: Query<R>
type Query<R> = string & Brand<"Query"> & object;
Defined in: packages/common/src/Evolu/Query.ts:25
A type-safe SQL query.
Example
const allTodos = evolu.createQuery((db) =>
db.selectFrom("todo").selectAll(),
);
type AllTodosRow = typeof allTodos.Row;
Type declaration
Name | Type | Description | Defined in |
---|---|---|---|
Row | R | A shorthand for InferRow. ### Example const allTodos = evolu.createQuery((db) => db.selectFrom("todo").selectAll(), ); type AllTodosRow = typeof allTodos.Row; | packages/common/src/Evolu/Query.ts:39 |
Type Parameters
Type Parameter | Default type |
---|---|
R extends Row | Row |