GetBucketName returns the bucket name associated with the database config.
()
| 649 | |
| 650 | // GetBucketName returns the bucket name associated with the database config. |
| 651 | func (dbConfig *DbConfig) GetBucketName() string { |
| 652 | if dbConfig.Bucket != nil { |
| 653 | return *dbConfig.Bucket |
| 654 | } |
| 655 | // db name as fallback in the case of a `nil` bucket. |
| 656 | return dbConfig.Name |
| 657 | } |
| 658 | |
| 659 | func (dbConfig *DbConfig) AutoImportEnabled(ctx context.Context) (bool, error) { |
| 660 | if dbConfig.AutoImport == nil { |
no outgoing calls
no test coverage detected