MCPcopy Index your code
hub / github.com/aptly-dev/aptly / Database

Method Database

context/context.go:300–305  ·  view source on GitHub ↗

Database opens and returns current instance of database

()

Source from the content-addressed store, hash-verified

298
299// Database opens and returns current instance of database
300func (context *AptlyContext) Database() (database.Storage, error) {
301 context.Lock()
302 defer context.Unlock()
303
304 return context._database()
305}
306
307func (context *AptlyContext) _database() (database.Storage, error) {
308 if context.database == nil {

Callers 5

ReOpenDatabaseMethod · 0.95
NewCollectionFactoryMethod · 0.95
aptlyDBCleanupFunction · 0.80
apiDBCleanupFunction · 0.80
putRawDBValueFunction · 0.80

Calls 1

_databaseMethod · 0.95

Tested by 1

putRawDBValueFunction · 0.64