DBObjectGCSAdapter constructor

DBObjectGCSAdapter(
  1. Client client,
  2. String projectName,
  3. String bucketName, {
  4. Directory? cacheDirectory,
  5. int? cacheLimit,
  6. bool generateTables = false,
  7. Object? populateTables,
  8. Object? populateSource,
  9. Object? populateSourceVariables,
  10. EntityRepositoryProvider? parentRepositoryProvider,
  11. String? workingPath,
  12. 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();
}