PostgresDriver constructor

PostgresDriver(
  1. Endpoint endpoint, {
  2. String schema = 'public',
  3. PoolSettings? settings,
})

Creates an owned pool for endpoint; opening happens on first use.

Implementation

PostgresDriver(
  pg.Endpoint endpoint, {
  String schema = 'public',
  pg.PoolSettings? settings,
}) : schema = _validatedSchema(schema),
     _pool = pg.Pool<void>.withEndpoints([endpoint], settings: settings);