A ConfigurationItem to represent a database connection configuration.
- Inheritance
- Object
- ConfigurationItem
- DatabaseConnectionConfiguration
Constructors
- DatabaseConnectionConfiguration()
-
Default constructor.
- DatabaseConnectionConfiguration.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
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
decode(
anything) → void -
Subclasses may override this method to read from something that is not a Map.
-
noSuchMethod(
Invocation i) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
readFromMap(
Map<String, dynamic> items) → void -
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