lupdo
Version:
Database Abstraction Layer for Node js
14 lines (13 loc) • 617 B
TypeScript
/// <reference types="node" />
import { Pool as TarnPool } from 'tarn';
import { PromiseInspection } from 'tarn/dist/PromiseInspection';
import { InternalPdoPoolOptions, PoolI } from '../types/pdo-pool';
export declare class PdoPool<T> extends TarnPool<T> implements PoolI<T> {
protected timeout: NodeJS.Timeout | null;
protected killResource: boolean;
protected killTimeoutMillis: number;
protected killer: (resource: T) => Promise<void>;
constructor(poolOptions: InternalPdoPoolOptions<T>);
destroy(): Promise<PromiseInspection<unknown> | PromiseInspection<void>>;
}
export default PdoPool;