PostgresPoolExecutor<T>.from constructor

PostgresPoolExecutor<T>.from({
  1. String host = "localhost",
  2. int port = 5432,
  3. required String username,
  4. required String password,
  5. required String database,
  6. PostgresOptions? options,
})

Implementation

PostgresPoolExecutor.from({String host = "localhost", int port = 5432, required String username, required String password, required String database, this.options})
    : pool = pg.Pool.withEndpoints([pg.Endpoint(host: host, port: port, database: database, username: username, password: password)],
          settings: pg.PoolSettings(maxConnectionCount: 10, sslMode: pg.SslMode.disable));