baja-lite 1.5.18 → 1.5.20
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.
- package/code.js +10 -6
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/package.json +1 -1
- package/sql.d.ts +250 -123
- package/sql.js +401 -150
- package/test-mysql.js +3 -4
- package/list.d.ts +0 -10
- package/list.js +0 -56
package/test-mysql.js
CHANGED
|
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
import { Field, SqlType } from 'baja-lite-field';
|
|
11
11
|
import 'reflect-metadata';
|
|
12
12
|
import { Boot } from './boot.js';
|
|
13
|
-
import { ColumnMode, DB, SqlService } from './sql.js';
|
|
13
|
+
import { ColumnMode, DB, SelectResult, SqlService } from './sql.js';
|
|
14
14
|
class BaseAuditUser {
|
|
15
15
|
}
|
|
16
16
|
__decorate([
|
|
@@ -100,9 +100,8 @@ export async function go2() {
|
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
102
|
const service = new BaseAuditUserService();
|
|
103
|
-
const
|
|
104
|
-
console.log(
|
|
105
|
-
console.log(11, data[1].length);
|
|
103
|
+
const rt = await service.stream().eq('auditId', '100987125344341382').select('labelName').where('audit_id > 0').excuteSelect({ selectResult: SelectResult.R_C_Assert });
|
|
104
|
+
console.log(rt);
|
|
106
105
|
// const list = await service.transaction<number>({
|
|
107
106
|
// fn: async conn => {
|
|
108
107
|
// await service.stream().eq('baseType', '0').in('auditId', ['162400829591265280', '162201628882247680']).excuteSelect();
|
package/list.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare class ArrayList<T> extends Array<T> {
|
|
2
|
-
constructor(array?: Array<T> | T | undefined);
|
|
3
|
-
add(...items: T[]): void;
|
|
4
|
-
size(): number;
|
|
5
|
-
isEmpty(): boolean;
|
|
6
|
-
get(index: number): T | undefined;
|
|
7
|
-
clear(): void;
|
|
8
|
-
set(index: number, item: T): void;
|
|
9
|
-
remove(index: number): void;
|
|
10
|
-
}
|
package/list.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export class ArrayList extends Array {
|
|
2
|
-
constructor(array) {
|
|
3
|
-
super();
|
|
4
|
-
if (array instanceof Array) {
|
|
5
|
-
super.push(...array);
|
|
6
|
-
}
|
|
7
|
-
else if (typeof array !== 'undefined') {
|
|
8
|
-
super.push(array);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
add(...items) {
|
|
12
|
-
this.push(...items);
|
|
13
|
-
}
|
|
14
|
-
size() {
|
|
15
|
-
return this.length;
|
|
16
|
-
}
|
|
17
|
-
isEmpty() {
|
|
18
|
-
return this.length === 0;
|
|
19
|
-
}
|
|
20
|
-
get(index) {
|
|
21
|
-
return this[index];
|
|
22
|
-
}
|
|
23
|
-
clear() {
|
|
24
|
-
this.length = 0;
|
|
25
|
-
}
|
|
26
|
-
set(index, item) {
|
|
27
|
-
this[index] = item;
|
|
28
|
-
}
|
|
29
|
-
remove(index) {
|
|
30
|
-
this.splice(index, 1);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
// export class ArrayMap<T> extends Array<T> {
|
|
34
|
-
// private _map: Map<string, T> = new Map();
|
|
35
|
-
// private key: keyof T;
|
|
36
|
-
// constructor(key: keyof T, array?: Array<T> | T | undefined) {
|
|
37
|
-
// super();
|
|
38
|
-
// this.key = key;
|
|
39
|
-
// if (array instanceof Array) {
|
|
40
|
-
// super.push(...array);
|
|
41
|
-
// } else if (typeof array !== 'undefined') {
|
|
42
|
-
// super.push(array);
|
|
43
|
-
// }
|
|
44
|
-
// }
|
|
45
|
-
// override push(...items: T[]): number {
|
|
46
|
-
// for (const item of items) {
|
|
47
|
-
// const key = item[this.key] as string;
|
|
48
|
-
// if (!this._map.has(key)) {
|
|
49
|
-
// super.push(item);
|
|
50
|
-
// this._map.set(key, item);
|
|
51
|
-
// }
|
|
52
|
-
// }
|
|
53
|
-
// return this.length;
|
|
54
|
-
// }
|
|
55
|
-
// override
|
|
56
|
-
// }
|