import type { SQLChunk } from "./sql.js"; import type { InferColumnType, ColumnConfig } from "../types/index.js"; export interface QueryExecutor { execute(builder: { toSQL(): SQLChunk; } | SQLChunk): Promise; executeSingle(builder: { toSQL(): SQLChunk; } | SQLChunk): Promise; raw>(query: string, params?: unknown[]): Promise; } export type WhereObject>> = { [K in keyof TColumns]?: InferColumnType | { eq?: InferColumnType; ne?: InferColumnType; gt?: InferColumnType; gte?: InferColumnType; lt?: InferColumnType; lte?: InferColumnType; in?: InferColumnType[]; notIn?: InferColumnType[]; between?: [InferColumnType, InferColumnType]; like?: string; ilike?: string; isNull?: boolean; isNotNull?: boolean; }; } & { OR?: WhereObject[]; AND?: WhereObject[]; NOT?: WhereObject; }; export type OrderDir = "asc" | "desc"; export type OrderByObject>> = { [K in keyof TColumns]?: OrderDir; }; export type WhereCondition> = any> = SQLChunk | WhereObject; //# sourceMappingURL=query.d.ts.map