baja-lite 1.5.19 → 1.5.21
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/README.md +1 -0
- package/code.js +198 -120
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/package.json +1 -1
- package/sql.d.ts +176 -28
- package/sql.js +382 -85
- package/test-mysql.js +3 -11
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([
|
|
@@ -78,12 +78,6 @@ let BaseAuditUserService = class BaseAuditUserService extends SqlService {
|
|
|
78
78
|
BaseAuditUserService = __decorate([
|
|
79
79
|
DB({ tableName: 'base_audit_user', clz: BaseAuditUser })
|
|
80
80
|
], BaseAuditUserService);
|
|
81
|
-
function select() {
|
|
82
|
-
return [];
|
|
83
|
-
}
|
|
84
|
-
function select2() {
|
|
85
|
-
return [];
|
|
86
|
-
}
|
|
87
81
|
export async function go2() {
|
|
88
82
|
await Boot({
|
|
89
83
|
Mysql: {
|
|
@@ -106,10 +100,8 @@ export async function go2() {
|
|
|
106
100
|
}
|
|
107
101
|
});
|
|
108
102
|
const service = new BaseAuditUserService();
|
|
109
|
-
const
|
|
110
|
-
console.log(
|
|
111
|
-
console.log(11, data[1].length);
|
|
112
|
-
const dd = select2();
|
|
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);
|
|
113
105
|
// const list = await service.transaction<number>({
|
|
114
106
|
// fn: async conn => {
|
|
115
107
|
// await service.stream().eq('baseType', '0').in('auditId', ['162400829591265280', '162201628882247680']).excuteSelect();
|