OrmProjectConfig class

Constructors

OrmProjectConfig({required Map<String, ConnectionDefinition> connections, required String activeConnectionName, String? defaultConnectionName})
Represents the entire (multi-tenant aware) orm.yaml.
OrmProjectConfig.fromMap(Map<String, Object?> data)
Rebuilds the config tree from decoded YAML.
factory
OrmProjectConfig.fromYaml(YamlMap yaml)
Creates a config directly from parsed YAML.
factory

Properties

activeConnection → ConnectionDefinition
The currently selected connection entry.
no setter
activeConnectionName → String
final
connectionName → String
Active connection name or the single entry fallback.
no setter
connections → Map<String, ConnectionDefinition>
All connection definitions declared in orm.yaml.
no setter
defaultConnectionName → String?
final
driver → DriverConfig
Driver block for the active connection.
no setter
hashCode → int
The hash code for this object.
no setterinherited
migrations → MigrationSection
Migrations metadata for the active connection.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seeds → SeedSection?
Seeds metadata when provided.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
Builds a configuration map suitable for serialization/reuse.
toString() → String
A string representation of this object.
inherited
updateActiveConnection({DriverConfig? driver, MigrationSection? migrations, SeedSection? seeds}) → OrmProjectConfig
Updates the active connection block.
withConnection(String name) → OrmProjectConfig
Returns a copy targeting the named connection.

Operators

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