pg-mvc-service 2.0.15 → 2.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,7 +59,7 @@ class TableModel {
59
59
  }
60
60
  get createSqlFromJoinWhere() {
61
61
  let sql = ` FROM ${this.TableName} as "${this.TableAlias}"`;
62
- console.log('createSqlFromJoinWhere', this.joinConditions);
62
+ console.log('createSqlFromJoinWhere', this.joinConditions.length);
63
63
  for (const join of this.joinConditions) {
64
64
  const joins = {
65
65
  inner: ' INNER JOIN',
@@ -68,7 +68,7 @@ class TableModel {
68
68
  };
69
69
  sql += joins[join.type];
70
70
  sql += ` ${join.model.TableName} as "${join.model.TableAlias}" ON `;
71
- console.log(join, 'createSqlFronJOin', this.vars);
71
+ console.log(join.conditions, 'createSqlFronJOin', this.vars);
72
72
  const query = WhereExpression_1.default.createCondition(join.conditions, this, this.vars.length + 1);
73
73
  console.log('createSqlFronJoin end', this.vars, query.vars);
74
74
  sql += query.expression;
@@ -210,7 +210,7 @@ class TableModel {
210
210
  * @param conditions 結合条件を指定します。条件はオブジェクトまたは文字列で指定できます。
211
211
  */
212
212
  join(joinType, joinModel, conditions) {
213
- console.log({ type: joinType, model: joinModel, conditions: conditions }, this.joinConditions);
213
+ console.log({ type: joinType, conditions: conditions }, this.joinConditions);
214
214
  this.joinConditions.push({ type: joinType, model: joinModel, conditions: conditions });
215
215
  }
216
216
  where(left, operator, right) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-mvc-service",
3
- "version": "2.0.15",
3
+ "version": "2.0.17",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/n-daira/npm-pack_mvc-service#readme",
6
6
  "bugs": {
@@ -81,7 +81,7 @@ export class TableModel {
81
81
  private get createSqlFromJoinWhere(): string {
82
82
  let sql = ` FROM ${this.TableName} as "${this.TableAlias}"`;
83
83
 
84
- console.log('createSqlFromJoinWhere', this.joinConditions);
84
+ console.log('createSqlFromJoinWhere', this.joinConditions.length);
85
85
  for (const join of this.joinConditions) {
86
86
  const joins = {
87
87
  inner: ' INNER JOIN',
@@ -90,7 +90,7 @@ export class TableModel {
90
90
  }
91
91
  sql += joins[join.type];
92
92
  sql += ` ${join.model.TableName} as "${join.model.TableAlias}" ON `;
93
- console.log(join, 'createSqlFronJOin', this.vars);
93
+ console.log(join.conditions, 'createSqlFronJOin', this.vars);
94
94
  const query = WhereExpression.createCondition(join.conditions, this, this.vars.length + 1);
95
95
  console.log('createSqlFronJoin end', this.vars, query.vars);
96
96
  sql += query.expression;
@@ -250,7 +250,7 @@ export class TableModel {
250
250
  * @param conditions 結合条件を指定します。条件はオブジェクトまたは文字列で指定できます。
251
251
  */
252
252
  public join(joinType: 'left' | 'inner' | 'full', joinModel: TableModel, conditions: Array<TNestedCondition>): void {
253
- console.log({type: joinType, model: joinModel, conditions: conditions}, this.joinConditions);
253
+ console.log({type: joinType, conditions: conditions}, this.joinConditions);
254
254
  this.joinConditions.push({type: joinType, model: joinModel, conditions: conditions});
255
255
  }
256
256