UNPKG

nukak

Version:

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

23 lines (22 loc) 450 B
import type { Dialect, ExtraOptions, Querier } from './querier.js'; /** * querier pool. */ export type QuerierPool<Q extends Querier = Querier> = { /** * the database dialect. */ readonly dialect: Dialect; /** * extra options */ readonly extra?: ExtraOptions; /** * get a querier from the pool. */ getQuerier: () => Promise<Q>; /** * end the pool. */ end(): Promise<void>; };