@hscloud/sequelize-dmdb
Version:
Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Dameng, Amazon Redshift and Snowflake’s Data Cloud. It features solid transaction support, relations, eager and lazy loading, read replication and mo
17 lines (16 loc) • 510 B
TypeScript
import BaseError from '../../errors/base-error';
/**
* Thrown when a connection to a database is closed while an operation is in progress
*/
export declare class AsyncQueueError extends BaseError {
constructor(message: string);
}
declare class AsyncQueue {
previous: Promise<unknown>;
closed: boolean;
rejectCurrent: (reason?: any) => void;
constructor();
close(): void;
enqueue(asyncFunction: (...args: any[]) => Promise<unknown>): Promise<unknown>;
}
export default AsyncQueue;