json-to-sql-parser
Version:
A TypeScript library that converts JSON-based query specifications into safe SQL queries
12 lines • 589 B
TypeScript
import type { UpdateQuery } from "../schemas";
import type { Config, ConfigWithForeignKeys } from "../types";
type ParsedUpdateQuery = {
table: string;
updates: Record<string, unknown>;
where?: string;
};
export declare function parseUpdateQuery(updateQuery: UpdateQuery, baseConfig: Config | ConfigWithForeignKeys): ParsedUpdateQuery;
export declare function compileUpdateQuery(query: ParsedUpdateQuery): string;
export declare function buildUpdateQuery(updateQuery: UpdateQuery, config: Config | ConfigWithForeignKeys): string;
export {};
//# sourceMappingURL=update.d.ts.map