fromPool<L> static method

PostgresDatabase fromPool<L>(
  1. Pool<L> pool, {
  2. bool ownsPool = false,
})

Wraps an existing pool.

The pool remains caller-owned unless ownsPool is true.

Implementation

static PostgresDatabase fromPool<L>(
  pg.Pool<L> pool, {
  bool ownsPool = false,
}) {
  return PostgresDatabase._pool(pool, ownsPool: ownsPool);
}