PgEndpoint class

The PostgreSQL server endpoint and its configuration to use when opening a new connection.

Constructors

PgEndpoint({required String host, int port = 5432, required String database, String? username, String? password, bool requireSsl = false})
PgEndpoint.parse(dynamic url)
Parses the most common connection URL formats:
factory

Properties

database String
final
hashCode int
The hash code for this object.
no setteroverride
host String
final
password String?
final
port int
final
requireSsl bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replace({String? host, int? port, String? database, String? username, String? password, bool? requireSsl}) PgEndpoint
Creates a new PgEndpoint by replacing the current values with non-null parameters.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override