API reference › @evolu/common › local‑first/Schema › CreateQuery
type CreateQuery<S> = <R>(queryCallback: (db: Pick<Kysely.Kysely<{ [Table in keyof S]: { readonly [Column in keyof S[Table]]: Column extends "id" ? InferOutput<(...)[(...)]> : InferOutput<(...)> | null } & SystemColumns } & {
evolu_history: {
column: string;
id: IdBytes;
table: keyof S;
timestamp: TimestampBytes;
value: SqliteValue;
};
evolu_message_quarantine: {
column: string;
id: IdBytes;
table: string;
timestamp: TimestampBytes;
value: SqliteValue;
};
}>, "selectFrom" | "fn" | "with" | "withRecursive">) => Kysely.SelectQueryBuilder<any, any, R>, options?: SqliteQueryOptions) => Query<S, Simplify<R>>;
Defined in: packages/common/src/local-first/Schema.ts:122