aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/db.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r--packages/taler-wallet-core/src/db.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts
index c5f8b6448..c550ab675 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -61,6 +61,8 @@ import {
} from "@gnu-taler/taler-util";
import {
DbAccess,
+ DbReadOnlyTransaction,
+ DbReadWriteTransaction,
describeContents,
describeIndex,
describeStore,
@@ -68,6 +70,7 @@ import {
IndexDescriptor,
openDatabase,
StoreDescriptor,
+ StoreNames,
StoreWithIndexes,
} from "./util/query.js";
import { RetryInfo, TaskIdentifiers } from "./operations/common.js";
@@ -2706,6 +2709,15 @@ export const WalletStoresV1 = {
),
};
+export type WalletDbReadOnlyTransaction<
+ Stores extends StoreNames<typeof WalletStoresV1> & string,
+> = DbReadOnlyTransaction<typeof WalletStoresV1, Stores>;
+
+export type WalletReadWriteTransaction<
+ Stores extends StoreNames<typeof WalletStoresV1> & string,
+> = DbReadWriteTransaction<typeof WalletStoresV1, Stores>;
+
+
/**
* An applied migration.
*/