@wxn0brp/db-core 0.12.10 → 0.12.11
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/dist/base/actions.d.ts +1 -1
- package/dist/base/actions.js +1 -1
- package/dist/db/valthera.js +1 -1
- package/dist/types/action.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/base/actions.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare abstract class ActionsBase implements ActionsBaseInterface {
|
|
|
23
23
|
abstract updateOne(config: VQueryT.Update): Promise<DataInternal | null>;
|
|
24
24
|
abstract remove(config: VQueryT.Remove): Promise<DataInternal[]>;
|
|
25
25
|
abstract removeOne(config: VQueryT.Remove): Promise<DataInternal | null>;
|
|
26
|
-
beginTransaction(id: Id): Promise<TransactionHandle>;
|
|
26
|
+
beginTransaction(id: Id, collections: string[]): Promise<TransactionHandle>;
|
|
27
27
|
commitTransaction(handle: TransactionHandle): Promise<void>;
|
|
28
28
|
rollbackTransaction(handle: TransactionHandle): Promise<void>;
|
|
29
29
|
createIndex(config: VQueryT.CreateIndex): Promise<void>;
|
package/dist/base/actions.js
CHANGED
|
@@ -16,7 +16,7 @@ export class ActionsBase {
|
|
|
16
16
|
version = "ActionsBase-core-" + version;
|
|
17
17
|
async init(...args) { }
|
|
18
18
|
async close(...args) { }
|
|
19
|
-
async beginTransaction(id) {
|
|
19
|
+
async beginTransaction(id, collections) {
|
|
20
20
|
throw new UnsupportedOperationError("beginTransaction");
|
|
21
21
|
}
|
|
22
22
|
async commitTransaction(handle) {
|
package/dist/db/valthera.js
CHANGED
|
@@ -316,7 +316,7 @@ export class ValtheraClass {
|
|
|
316
316
|
try {
|
|
317
317
|
let handle;
|
|
318
318
|
try {
|
|
319
|
-
handle = await this.adapter.beginTransaction(genId());
|
|
319
|
+
handle = await this.adapter.beginTransaction(genId(), collections);
|
|
320
320
|
}
|
|
321
321
|
catch (err) {
|
|
322
322
|
throw wrapAdapterError(err, {
|
package/dist/types/action.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface ActionsBaseInterface {
|
|
|
30
30
|
toggleOne(query: VQueryT.ToggleOne): Promise<VQueryT.ToggleOneResult<DataInternal>>;
|
|
31
31
|
count(query: VQueryT.Count): Promise<number>;
|
|
32
32
|
bulkAdd(query: VQueryT.BulkAdd): Promise<DataInternal[]>;
|
|
33
|
-
beginTransaction(id: Id): Promise<TransactionHandle>;
|
|
33
|
+
beginTransaction(id: Id, collections: string[]): Promise<TransactionHandle>;
|
|
34
34
|
commitTransaction(handle: TransactionHandle): Promise<void>;
|
|
35
35
|
rollbackTransaction(handle: TransactionHandle): Promise<void>;
|
|
36
36
|
createIndex(config: VQueryT.CreateIndex): Promise<void>;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.12.
|
|
1
|
+
export declare const version = "0.12.11";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "0.12.
|
|
1
|
+
export const version = "0.12.11";
|