(database *db.Memory)
| 16 | } |
| 17 | |
| 18 | func NewBundleReader(database *db.Memory) *BundleReader { |
| 19 | return &BundleReader{ |
| 20 | database: database, |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | func (b *BundleReader) Read(ctx context.Context, tenantID, name string) (bundle *base.DataBundle, err error) { |
| 25 | txn := b.database.DB.Txn(false) // Start read-only transaction |
no outgoing calls
no test coverage detected