PostgresConnectionResolver class Null safety

Helper class that resolves PostgreSQL connection and credential parameters, validates them and generates a connection URI.

It is able to process multiple connections to PostgreSQL cluster nodes.

Configuration parameters

  • connection(s):
    • discovery_key: (optional) a key to retrieve the connection from IDiscovery
    • host: host name or IP address
    • port: port number (default: 5432)
    • database: database name
    • uri: resource URI or connection string with all parameters in it
  • credential(s):
    • store_key: (optional) a key to retrieve the credentials from ICredentialStore
    • username: user name
    • password: user password

References

  • *:discovery:*:*:1.0 (optional) IDiscovery services
  • *:credential-store:*:*:1.0 (optional) Credential stores to resolve credentials
Implemented types

Constructors

PostgresConnectionResolver()

Properties

connectionResolver_ ConnectionResolver
read / write
credentialResolver_ CredentialResolver
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

configure(ConfigParams config) → void
Configures component by passing configuration parameters. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
resolve(String? correlationId) Future<Map<String, dynamic>>
Resolves PostgreSQL config from connection and credential parameters. [...]
setReferences(IReferences references) → void
Sets references to dependent components. [...]
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited