DatabaseConfiguration class

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.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
host String
The host of the database to connect to.
getter/setter pair
isTemporary bool
A flag to represent permanence.
getter/setter pair
password String?
A password for authenticating to the database.
getter/setter pair
port int
The port of the database to connect to.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String?
A username for authenticating to the database.
getter/setter pair

Methods

decode(dynamic value) → void
Ingests value into the properties of this type.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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