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 temporary: 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
host ↔ String
The host of the database to connect to. [...]
read / write
isTemporary ↔ bool
A flag to represent permanence. [...]
@optionalConfiguration, read / write
password ↔ String
A password for authenticating to the database. [...]
@optionalConfiguration, read / write
port ↔ int
The port of the database to connect to. [...]
read / write
username ↔ String
A username for authenticating to the database. [...]
@optionalConfiguration, read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

decode(dynamic anything) → void
Subclasses may override this method to read from something that is not a Map. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited
validate() → List<String>
Subclasses may override this method in order to validate the values of properties. [...]
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited