poolUrl static method

PostgresDatabase poolUrl(
  1. String connectionString
)

Creates and owns a lazy PostgreSQL pool from connectionString.

Use the max_connection_count URL parameter to set its connection limit.

Implementation

static PostgresDatabase poolUrl(String connectionString) {
  return PostgresDatabase._pool(
    pg.Pool<void>.withUrl(connectionString),
    ownsPool: true,
  );
}