DatabaseConfig class
Represents a database definition in databases.yml.
Constructors
-
DatabaseConfig({required String name, required String plugin, required String connection, String? migrationConnection, Map<
String, dynamic> attributes = const {}}) -
const
- DatabaseConfig.fromYaml(Map yaml)
-
factory
Properties
-
attributes
→ Map<
String, dynamic> -
final
- connection → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- migrationConnection → String?
-
final
- name → String
-
final
- plugin → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
load(
String path) → Future< List< DatabaseConfig> > -
parse(
String content) → List< DatabaseConfig>