baja-lite 1.5.1 → 1.5.3
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/package.json +1 -1
- package/sql.d.ts +1 -1
- package/sql.js +2 -2
package/package.json
CHANGED
package/sql.d.ts
CHANGED
|
@@ -488,7 +488,7 @@ export interface SqliteRemoteInterface {
|
|
|
488
488
|
restore(dbName: string, importPath: string): void;
|
|
489
489
|
close(dbName?: string): void;
|
|
490
490
|
}
|
|
491
|
-
interface Connection {
|
|
491
|
+
export interface Connection {
|
|
492
492
|
[_daoConnection]: any;
|
|
493
493
|
[_inTransaction]: boolean;
|
|
494
494
|
execute(sync: SyncMode.Sync, sql?: string, params?: any): {
|
package/sql.js
CHANGED
|
@@ -2907,12 +2907,12 @@ export class SqlService {
|
|
|
2907
2907
|
}
|
|
2908
2908
|
transaction(option) {
|
|
2909
2909
|
if (option.sync === SyncMode.Sync) {
|
|
2910
|
-
return option.dao.transaction(SyncMode.Sync, option.fn);
|
|
2910
|
+
return option.dao.transaction(SyncMode.Sync, option.fn, option.conn);
|
|
2911
2911
|
}
|
|
2912
2912
|
else {
|
|
2913
2913
|
return new Promise(async (resolve, reject) => {
|
|
2914
2914
|
try {
|
|
2915
|
-
const rt = await option.dao.transaction(SyncMode.Async, option.fn);
|
|
2915
|
+
const rt = await option.dao.transaction(SyncMode.Async, option.fn, option.conn);
|
|
2916
2916
|
resolve(rt);
|
|
2917
2917
|
}
|
|
2918
2918
|
catch (error) {
|