DatabaseConfiguration class Null safety

A Configuration to represent a database connection configuration.

Inheritance

Constructors

DatabaseConfiguration()
Default constructor.
DatabaseConfiguration.fromFile(File file)
DatabaseConfiguration.fromMap(Map yaml)
DatabaseConfiguration.fromString(String yaml)
DatabaseConfiguration.withConnectionInfo(String? username, String? password, String host, int port, String databaseName, {bool isTemporary = false})
A named constructor that contains all of the properties of this instance.

Properties

databaseName String
The name of the database to connect to.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
host String
The host of the database to connect to.
read / write
isTemporary bool
A flag to represent permanence.
read / write
password String?
A password for authenticating to the database.
read / write
port int
The port of the database to connect to.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
username String?
A username for authenticating to the database.
read / write

Methods

decode(dynamic value) → void
Ingests value into the properties of this type.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate() → void
Validates this configuration.
inherited

Operators

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