@mrnafisia/type-query
Advanced tools
Comparing version 1.0.47 to 1.0.48
@@ -38,8 +38,9 @@ "use strict"; | ||
var _this = this; | ||
var _a, _b, _c, _d, _e; | ||
var ignoreInWhere = (_a = (options === null || options === void 0 ? void 0 : options.ignoreInWhere)) !== null && _a !== void 0 ? _a : false; | ||
var ignoreInReturning = (_b = (options === null || options === void 0 ? void 0 : options.ignoreInReturning)) !== null && _b !== void 0 ? _b : false; | ||
var ignoreInGroupBy = (_c = (options === null || options === void 0 ? void 0 : options.ignoreInGroupBy)) !== null && _c !== void 0 ? _c : false; | ||
var groupBy = (_d = (options === null || options === void 0 ? void 0 : options.groupBy)) !== null && _d !== void 0 ? _d : []; | ||
var orders = (_e = (options === null || options === void 0 ? void 0 : options.orders)) !== null && _e !== void 0 ? _e : []; | ||
var _a, _b, _c, _d, _e, _f; | ||
var ignoreInWhere = (_a = options === null || options === void 0 ? void 0 : options.ignoreInWhere) !== null && _a !== void 0 ? _a : false; | ||
var ignoreInReturning = (_b = options === null || options === void 0 ? void 0 : options.ignoreInReturning) !== null && _b !== void 0 ? _b : false; | ||
var ignoreInGroupBy = (_c = options === null || options === void 0 ? void 0 : options.ignoreInGroupBy) !== null && _c !== void 0 ? _c : false; | ||
var distinct = (_d = options === null || options === void 0 ? void 0 : options.distinct) !== null && _d !== void 0 ? _d : false; | ||
var groupBy = (_e = options === null || options === void 0 ? void 0 : options.groupBy) !== null && _e !== void 0 ? _e : []; | ||
var orders = (_f = options === null || options === void 0 ? void 0 : options.orders) !== null && _f !== void 0 ? _f : []; | ||
var start = options === null || options === void 0 ? void 0 : options.start; | ||
@@ -50,2 +51,6 @@ var step = options === null || options === void 0 ? void 0 : options.step; | ||
var tokens = ['SELECT']; | ||
// distinct | ||
if (distinct) { | ||
tokens.push('DISTINCT'); | ||
} | ||
// select | ||
@@ -304,9 +309,10 @@ var resolvedReturning = resolveReturning(function (column) { return ({ type: table.columns[column].type, title: table.columns[column].title }); }, _returning, params.length + 1, ignoreInReturning); | ||
var _this = this; | ||
var _a, _b, _c, _d, _e, _f; | ||
var ignoreInWhere = (_a = (options === null || options === void 0 ? void 0 : options.ignoreInWhere)) !== null && _a !== void 0 ? _a : false; | ||
var ignoreInReturning = (_b = (options === null || options === void 0 ? void 0 : options.ignoreInReturning)) !== null && _b !== void 0 ? _b : false; | ||
var ignoreInJoin = (_c = (options === null || options === void 0 ? void 0 : options.ignoreInJoin)) !== null && _c !== void 0 ? _c : false; | ||
var ignoreInGroupBy = (_d = (options === null || options === void 0 ? void 0 : options.ignoreInGroupBy)) !== null && _d !== void 0 ? _d : false; | ||
var groupBy = (_e = (options === null || options === void 0 ? void 0 : options.groupBy)) !== null && _e !== void 0 ? _e : []; | ||
var orders = (_f = (options === null || options === void 0 ? void 0 : options.orders)) !== null && _f !== void 0 ? _f : []; | ||
var _a, _b, _c, _d, _e, _f, _g; | ||
var ignoreInWhere = (_a = options === null || options === void 0 ? void 0 : options.ignoreInWhere) !== null && _a !== void 0 ? _a : false; | ||
var ignoreInReturning = (_b = options === null || options === void 0 ? void 0 : options.ignoreInReturning) !== null && _b !== void 0 ? _b : false; | ||
var ignoreInJoin = (_c = options === null || options === void 0 ? void 0 : options.ignoreInJoin) !== null && _c !== void 0 ? _c : false; | ||
var ignoreInGroupBy = (_d = options === null || options === void 0 ? void 0 : options.ignoreInGroupBy) !== null && _d !== void 0 ? _d : false; | ||
var distinct = (_e = options === null || options === void 0 ? void 0 : options.distinct) !== null && _e !== void 0 ? _e : false; | ||
var groupBy = (_f = options === null || options === void 0 ? void 0 : options.groupBy) !== null && _f !== void 0 ? _f : []; | ||
var orders = (_g = options === null || options === void 0 ? void 0 : options.orders) !== null && _g !== void 0 ? _g : []; | ||
var start = options === null || options === void 0 ? void 0 : options.start; | ||
@@ -318,2 +324,6 @@ var step = options === null || options === void 0 ? void 0 : options.step; | ||
var tokens = ['SELECT']; | ||
// distinct | ||
if (distinct) { | ||
tokens.push('DISTINCT'); | ||
} | ||
// select | ||
@@ -320,0 +330,0 @@ var resolvedReturning = resolveReturning(function (column) { |
{ | ||
"name": "@mrnafisia/type-query", | ||
"version": "1.0.47", | ||
"version": "1.0.48", | ||
"description": "mini-orm with full type support for postgres.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
593211
9212