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