ServerConnection class
One thing the server talks to, named by its connection string.
Constructors
- ServerConnection(String kind, String dsn, {String? label})
Properties
- dsn → String
-
The connection string as the server holds it. Publish what you are
willing to have on a developer's screen — attachers mask the
password-shaped parts for display (maskDsn) but the wire carries this
verbatim.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → String
-
postgres,sqlite,redis, … — a word, not an enum: the GUI shows it as a chip and does not need to understand it.final - label → String?
-
Distinguishes several connections of one kind —
main,replica.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Object? json) → ServerConnection?