MCPcopy Index your code
hub / github.com/docker/docker-agent / MemoryDatabase

Struct MemoryDatabase

pkg/memory/database/sqlite/sqlite.go:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44type MemoryDatabase struct {
45 path string
46 lockPath string
47
48 mu sync.Mutex
49 db *sql.DB
50}
51
52func NewMemoryDatabase(path string) (database.Database, error) {
53 return &MemoryDatabase{path: path, lockPath: database.LockPathForDatabase(path)}, nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected