PostgreSQLPersistentStore constructor

PostgreSQLPersistentStore(
  1. String? username,
  2. String? password,
  3. String? host,
  4. int? port,
  5. String? databaseName, {
  6. String? timeZone = "UTC",
  7. bool useSSL = false,
})

Creates an instance of this type from connection info.

Implementation

PostgreSQLPersistentStore(
    this.username, this.password, this.host, this.port, this.databaseName,
    {this.timeZone = "UTC", bool useSSL = false})
    : isSSLConnection = useSSL {
  ServiceRegistry.defaultInstance
      .register<PostgreSQLPersistentStore>(this, (store) => store.close());
}