Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode
/ layerFromPath
Function
layerFromPath
packages/core/src/database/database.ts:39–41 ·
view source on GitHub ↗
(filename: string)
Source
from the content-addressed store, hash-verified
37
)
38
39
export
function
layerFromPath(filename: string) {
40
return
layer.pipe(Layer.provide(sqliteLayer({ filename })))
41
}
42
43
export
function
path() {
44
if
(Flag.OPENCODE_DB) {
Callers
1
database.ts
File · 0.85
Calls
1
sqliteLayer
Function · 0.70
Tested by
no test coverage detected