UNPKG

agnostic-query

Version:

Type-safe fluent builder for portable query schemas. Runtime-agnostic, database-agnostic — the same QuerySchema drives Drizzle, Kysely, db0, or raw SQL.

5 lines (4 loc) 250 B
import * as v from 'valibot'; import type { SchemaShape } from './core/schema.js'; import type { QueryWhere } from './core/where.js'; export declare const createWhereSchema: <TShape extends SchemaShape>() => v.GenericSchema<QueryWhere<TShape, any>>;