MCPcopy Create free account
hub / github.com/aptly-dev/aptly / dbPath

Method dbPath

context/context.go:295–297  ·  view source on GitHub ↗

DBPath builds path to database

()

Source from the content-addressed store, hash-verified

293
294// DBPath builds path to database
295func (context *AptlyContext) dbPath() string {
296 return filepath.Join(context.config().GetRootDir(), "db")
297}
298
299// Database opens and returns current instance of database
300func (context *AptlyContext) Database() (database.Storage, error) {

Callers 2

DBPathMethod · 0.95
_databaseMethod · 0.95

Calls 2

configMethod · 0.95
GetRootDirMethod · 0.80

Tested by

no test coverage detected