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, bool isUnixSocket = false, String? applicationName})
- PgEndpoint.parse(dynamic url)
-
Parses the most common connection URL formats:
factory
Properties
- applicationName → String?
-
If provided, it will set that name to the Postgres connection for debugging
purposes.
If a different name is desired for different connections opened by the pool,
the name can contain '{{connectionId}}' which would get replaced at run time.
final
- database → String
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- host → String
-
final
- isUnixSocket → bool
-
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, bool? isUnixSocket, String? applicationName()?}) → 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