UNPKG

refql

Version:

A Node.js and Deno library for composing and running SQL queries.

14 lines (13 loc) 495 B
import { flMap } from "../common/consts"; import { TagFunctionVariable, ValueType } from "../common/types"; import SQLNode from "./SQLNode"; interface Raw<Params = any> extends SQLNode<Params> { run: TagFunctionVariable<Params, string>; map(f: (x: ValueType) => ValueType): Raw<Params>; [flMap]: this["map"]; } declare function Raw<Params>(run: ValueType | TagFunctionVariable<Params>): Raw<Params>; declare namespace Raw { var isRaw: (x: any) => x is Raw; } export default Raw;