OrmProjectConfig constructor
OrmProjectConfig({})
Represents the entire (multi-tenant aware) orm.yaml.
Implementation
OrmProjectConfig({
required Map<String, ConnectionDefinition> connections,
required this.activeConnectionName,
this.defaultConnectionName,
}) : _connections = Map.unmodifiable(connections),
assert(connections.isNotEmpty),
assert(
connections.containsKey(activeConnectionName),
'Active connection $activeConnectionName must exist in connections.',
);