This commit is contained in:
2026-01-05 13:40:23 +01:00
parent 18e29fa413
commit 8bcb35a8f0
7 changed files with 15 additions and 4 deletions
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = sqlGenerator;
const lodash_1 = require("lodash");
const sql_gen_operator_gen_1 = __importDefault(require("./sql-gen-operator-gen"));
/**
* # SQL Query Generator
@@ -170,6 +171,7 @@ function sqlGenerator({ tableName, genObject, dbFullName, count }) {
str +=
"," +
genObject.join
.filter((j) => !(0, lodash_1.isUndefined)(j))
.map((joinObj) => {
const joinTableName = joinObj.alias
? joinObj.alias
@@ -212,6 +214,7 @@ function sqlGenerator({ tableName, genObject, dbFullName, count }) {
str +=
" " +
genObject.join
.filter((j) => !(0, lodash_1.isUndefined)(j))
.map((join) => {
return (join.joinType +
" " +