DBObjectGCSAdapter constructor
DBObjectGCSAdapter(
- Client client,
- String projectName,
- String bucketName, {
- Directory? cacheDirectory,
- int? cacheLimit,
- bool generateTables = false,
- Object? populateTables,
- Object? populateSource,
- Object? populateSourceVariables,
- EntityRepositoryProvider? parentRepositoryProvider,
- String? workingPath,
- bool log = false,
Implementation
DBObjectGCSAdapter(http.Client client, this.projectName, this.bucketName,
{this.cacheDirectory,
this.cacheLimit,
super.generateTables,
super.populateTables,
super.populateSource,
super.populateSourceVariables,
super.parentRepositoryProvider,
super.workingPath,
super.log})
: super(
'object.gcs',
1,
3,
const DBAdapterCapability(
dialect: DBDialect('object'),
transactions: true,
transactionAbort: true,
constraintSupport: false,
multiIsolateSupport: true),
) {
boot();
storage = gcs.Storage(client, projectName);
bucket = storage.bucket(bucketName);
parentRepositoryProvider?.notifyKnownEntityRepositoryProvider(this);
_checkCacheDirectoryLimit();
}