DatabaseConfig class
- Annotations
-
- @JsonSerializable(anyMap: true, checked: true)
Constructors
- DatabaseConfig({required String host, required int port, required String databaseName, required String username, String? password})
- DatabaseConfig.fromEnvironment({DatabaseConfig? defaults})
-
load database configuration from the
DBCONFIG
environment variables. this environment variable must be a json.factory -
DatabaseConfig.fromJson(Map<
String, dynamic> json) -
factory
Properties
Methods
-
copyWith(
{String? host, int? port, String? databaseName}) → DatabaseConfig -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- defaults → DatabaseConfig
-
final