PostgreSQLPersistentStore.fromConnectionInfo constructor

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

Same constructor as default constructor.

Kept for backwards compatability.

Implementation

PostgreSQLPersistentStore.fromConnectionInfo(
    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());
}