UNPKG

nukak

Version:

flexible and efficient ORM, with declarative JSON syntax and smart type-safety

15 lines (14 loc) 464 B
import type { Dialect, ExtraOptions, Querier, QuerierPool } from 'nukak/type'; export declare abstract class AbstractQuerierPool<Q extends Querier> implements QuerierPool<Q> { readonly dialect: Dialect; readonly extra?: ExtraOptions; constructor(dialect: Dialect, extra?: ExtraOptions); /** * get a querier from the pool. */ abstract getQuerier(): Promise<Q>; /** * end the pool. */ abstract end(): Promise<void>; }