UNPKG

@thi.ng/rstream-query

Version:

@thi.ng/rstream based triple store & reactive query engine

23 lines 877 B
import type { Triple } from "./api.js"; export declare const isQVar: (x: any) => boolean; export declare const isAutoQVar: (x: any) => boolean; export declare const autoQVar: () => string; export declare const qvarName: (x: string) => string; /** * Returns an optimized query variable solution extractor function based * on given pattern type. `vs`, `vp`, `vo` are flags to indicate if `s`, * `p` and/or `o` pattern items are query variables. The returned fn * will be optimized to 1 of the 8 possible case and accepts a single * fact to extract the respective variables from. * * @param vs - * @param vp - * @param vo - * @param s - * @param p - * @param o - */ export declare const qvarResolver: (vs: boolean, vp: boolean, vo: boolean, s: string, p: string, o: string) => ((f: Triple) => { [x: number]: any; }) | undefined; //# sourceMappingURL=qvar.d.ts.map