refql
Version:
A Node.js and Deno library for composing and running SQL queries.
15 lines (14 loc) • 588 B
TypeScript
import { LogicOperator } from "../common/types";
import Prop from "../Prop";
import SQLProp from "../Prop/SQLProp";
import { SQLTag } from "../SQLTag";
import Operation from "./Operation";
interface Logic<TableId extends string = any, Params = any> extends Operation<Params> {
prop: Prop<TableId> | SQLProp | SQLTag;
operator: LogicOperator;
}
declare function Logic<TableId extends string, Params>(prop: Prop<TableId> | SQLProp | SQLTag, operator: LogicOperator): Logic<TableId, Params>;
declare namespace Logic {
var isLogic: (x: any) => x is Logic;
}
export default Logic;