@wxn0brp/db-core 0.12.10-alpha.0 → 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.
@@ -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>;
@@ -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) {
@@ -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, {
@@ -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.10-alpha.0";
1
+ export declare const version = "0.12.11";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = "0.12.10-alpha.0";
1
+ export const version = "0.12.11";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wxn0brp/db-core",
3
- "version": "0.12.10-alpha.0",
3
+ "version": "0.12.11",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "author": "wxn0brP",