@zuzjs/orm 0.1.6 → 0.1.7
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Repository, ObjectLiteral } from "typeorm";
|
|
2
|
-
import { QueryAction } from "../types";
|
|
3
1
|
import { QueryResult } from "mysql2";
|
|
2
|
+
import { ObjectLiteral, Repository } from "typeorm";
|
|
4
3
|
import { QueryDeepPartialEntity } from "typeorm/query-builder/QueryPartialEntity";
|
|
4
|
+
import { QueryAction } from "../types";
|
|
5
5
|
declare class ZormQueryBuilder<T extends ObjectLiteral, R = QueryResult> extends Promise<R> {
|
|
6
6
|
private repository;
|
|
7
7
|
private queryBuilder;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const index_js_1 = require("./mysql/index.js");
|
|
4
3
|
const core_1 = require("../core");
|
|
4
|
+
const index_js_1 = require("./mysql/index.js");
|
|
5
5
|
class ZormQueryBuilder extends Promise {
|
|
6
6
|
repository;
|
|
7
7
|
queryBuilder;
|
|
@@ -229,6 +229,7 @@ class ZormQueryBuilder extends Promise {
|
|
|
229
229
|
*/
|
|
230
230
|
in(field, values) {
|
|
231
231
|
this.queryBuilder.andWhere(`${this.entityAlias}.${String(field)} IN (:...values)`, { values });
|
|
232
|
+
this.whereCount++;
|
|
232
233
|
return this;
|
|
233
234
|
}
|
|
234
235
|
/**
|