UNPKG

@ndustrial/node-distributed-lock

Version:

Enables distributed locking for sequelize applications

14 lines (13 loc) 466 B
export = PostgresLock; declare class PostgresLock extends LockInterface { createSchema(schema: any): string; createLockTable(tableName: any): string; removeStaleLocks(tableName: any, lockTTLSeconds: any): string; lockTable(tableName: any, wait?: boolean): string; obtainMutex(tableName: any): string; removeMutex(tableName: any): string; } declare namespace PostgresLock { let dialect: string; } import LockInterface = require("./base");