1 | export declare const OPERATION_TYPE: {
|
2 | TM_GET_DTC_ADDRESS: number;
|
3 | TM_PROPAGATE_XACT: number;
|
4 | TM_BEGIN_XACT: number;
|
5 | TM_PROMOTE_XACT: number;
|
6 | TM_COMMIT_XACT: number;
|
7 | TM_ROLLBACK_XACT: number;
|
8 | TM_SAVE_XACT: number;
|
9 | };
|
10 | export declare const ISOLATION_LEVEL: {
|
11 | [key: string]: number;
|
12 | };
|
13 | export declare const isolationLevelByValue: {
|
14 | [key: number]: string;
|
15 | };
|
16 | export declare function assertValidIsolationLevel(isolationLevel: any, name: string): asserts isolationLevel is 0 | 1 | 2 | 3 | 4 | 5;
|
17 | export declare class Transaction {
|
18 | name: string;
|
19 | isolationLevel: number;
|
20 | outstandingRequestCount: number;
|
21 | constructor(name: string, isolationLevel?: number);
|
22 | beginPayload(txnDescriptor: Buffer): {
|
23 | [Symbol.iterator](): Generator<Buffer, void, unknown>;
|
24 | toString: () => string;
|
25 | };
|
26 | commitPayload(txnDescriptor: Buffer): {
|
27 | [Symbol.iterator](): Generator<Buffer, void, unknown>;
|
28 | toString: () => string;
|
29 | };
|
30 | rollbackPayload(txnDescriptor: Buffer): {
|
31 | [Symbol.iterator](): Generator<Buffer, void, unknown>;
|
32 | toString: () => string;
|
33 | };
|
34 | savePayload(txnDescriptor: Buffer): {
|
35 | [Symbol.iterator](): Generator<Buffer, void, unknown>;
|
36 | toString: () => string;
|
37 | };
|
38 | isolationLevelToTSQL(): "" | "READ UNCOMMITTED" | "READ COMMITTED" | "REPEATABLE READ" | "SERIALIZABLE" | "SNAPSHOT";
|
39 | }
|