1 | /**
|
2 | * Local transaction
|
3 | */
|
4 | export interface Transaction {
|
5 | /**
|
6 | * Commit the transaction
|
7 | */
|
8 | commit(): Promise<void>;
|
9 | /**
|
10 | * Rollback the transaction
|
11 | */
|
12 | rollback(): Promise<void>;
|
13 | /**
|
14 | * Check if the transaction has an active connection
|
15 | */
|
16 | isActive(): boolean;
|
17 | /**
|
18 | * The transaction Identifier
|
19 | */
|
20 | id: string;
|
21 | }
|
22 | /**
|
23 | * Isolation level
|
24 | */
|
25 | export declare enum IsolationLevel {
|
26 | READ_COMMITTED = "READ COMMITTED",
|
27 | READ_UNCOMMITTED = "READ UNCOMMITTED",
|
28 | SERIALIZABLE = "SERIALIZABLE",
|
29 | REPEATABLE_READ = "REPEATABLE READ"
|
30 | }
|