UNPKG

refql

Version:

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

19 lines (18 loc) 585 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const consts_1 = require("../common/consts"); const SQLNode_1 = require("./SQLNode"); const type = "refql/Values"; const prototype = Object.assign({}, SQLNode_1.sqlNodePrototype, { constructor: Values, [consts_1.refqlType]: type }); function Values(run) { let values = Object.create(prototype); values.run = typeof run === "function" ? run : () => run; return values; } Values.isValues = function (x) { return x != null && x[consts_1.refqlType] === type; }; exports.default = Values;