UNPKG

refql

Version:

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

16 lines (15 loc) 547 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const _1 = __importDefault(require(".")); const SQLTag_1 = require("../SQLTag"); const SQLProp_1 = __importDefault(require("./SQLProp")); function StringProp(as, col) { if ((0, SQLTag_1.isSQLTag)(col)) { return (0, SQLProp_1.default)(as, col); } return (0, _1.default)(as, col); } exports.default = StringProp;