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