UNPKG

@ndustrial/node-distributed-lock

Version:

Enables distributed locking for sequelize applications

13 lines (12 loc) 393 B
export = LockInterface; declare class LockInterface { createSchema(schema: any): void; createLockTable(tableName: any): void; removeStaleLocks(tableName: any, lockTTLSeconds: any): void; lockTable(tableName: any, wait?: boolean): void; obtainMutex(tableName: any): void; removeMutex(tableName: any): void; } declare namespace LockInterface { let dialect: string; }