Skip to content

Commit

Permalink
Adding release files
Browse files Browse the repository at this point in the history
  • Loading branch information
24SevenOffice committed Mar 23, 2020
1 parent 2fa5e29 commit 08b53b5
Show file tree
Hide file tree
Showing 23 changed files with 1,064 additions and 55 deletions.
54 changes: 0 additions & 54 deletions .gitignore

This file was deleted.

28 changes: 28 additions & 0 deletions lib/db/connection.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import * as MsSql from 'mssql';
import { Query } from 'tfso-repository/lib/repository/db/query';
import { IRecordSet } from 'tfso-repository/lib/repository/db/recordset';
export declare enum IsolationLevel {
ReadUncommitted = 0,
ReadCommitted = 1,
RepeatableRead = 2,
Snapshot = 3,
Serializable = 4
}
export default class Connection {
private static connectionPool;
private _connectionString;
private _connection;
private _transaction;
private _rolledback;
constructor(connectionString: MsSql.config | PromiseLike<MsSql.config>);
beginTransaction(isolationLevel?: IsolationLevel): Promise<void>;
commitTransaction(): Promise<void>;
rollbackTransaction(): Promise<void>;
private getConnection;
private assertConnected;
execute<U>(query: Query<U>): Promise<IRecordSet<U>>;
execute<U>(work: (connection: MsSql.Connection) => IRecordSet<U> | PromiseLike<IRecordSet<U>>): Promise<IRecordSet<U>>;
private getIsolationLevel;
static getIsolationLevel(isolationLevel: IsolationLevel): MsSql.IIsolationLevel;
private delay;
}
205 changes: 205 additions & 0 deletions lib/db/connection.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 08b53b5

Please sign in to comment.