DBObjectDirectoryAdapter constructor
DBObjectDirectoryAdapter(})
Implementation
DBObjectDirectoryAdapter(this.directory,
{super.generateTables,
super.populateTables,
super.populateSource,
super.populateSourceVariables,
super.parentRepositoryProvider,
super.workingPath,
super.log})
: super(
'object.directory',
1,
3,
const DBAdapterCapability(
dialect: DBDialect('object'),
transactions: true,
transactionAbort: true,
constraintSupport: false,
multiIsolateSupport: true),
) {
boot();
if (!directory.existsSync()) {
throw ArgumentError(
"[DBObjectDirectoryAdapter]: Directory doesn't exists: $directory");
}
var modeString = directory.statSync().modeString();
if (!modeString.contains('rw')) {
throw StateError(
"[DBObjectDirectoryAdapter]: Can't read+write the directory: $directory");
}
parentRepositoryProvider?.notifyKnownEntityRepositoryProvider(this);
}