@ndustrial/node-distributed-lock
Version:
Enables distributed locking for sequelize applications
25 lines (24 loc) • 742 B
TypeScript
export = PGQueryInterface;
declare class PGQueryInterface extends QueryInterface {
query(statement: any, { transaction, replacements, firstResult }: {
transaction: any;
replacements: any;
firstResult: any;
}): Promise<any>;
createTransaction(): Promise<PGTransaction>;
getDialectName(): string;
parseDatabaseError(error: any): string;
}
declare namespace PGQueryInterface {
let interfaceName: string;
function checkInterface(queryInterface: any): boolean;
}
import QueryInterface = require("./base");
declare class PGTransaction {
constructor(client: any);
client: any;
create(): Promise<this>;
commit(): Promise<this>;
rollback(): Promise<this>;
release(): void;
}