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

databaseName String
final
hashCode int
The hash code for this object.
no setterinherited
host String
final
password String?
final
port int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String
final

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