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

NameTypeDescriptionDefined in
RowRA 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 ParameterDefault type
R extends RowRow

Was this page helpful?