MCPcopy Create free account
hub / github.com/cloudflare/computer / writeFetchCursorPath

Function writeFetchCursorPath

packages/dofs/src/sync/watermarks.ts:71–83  ·  view source on GitHub ↗
(
  db: Database,
  path: string | null,
  backend: string = DEFAULT_BACKEND_ID,
)

Source from the content-addressed store, hash-verified

69}
70
71function writeFetchCursorPath(
72 db: Database,
73 path: string | null,
74 backend: string = DEFAULT_BACKEND_ID,
75): void {
76 db.run(
77 "INSERT INTO _vfs_fetch_cursor (k, backend, path) VALUES (?, ?, ?) " +
78 "ON CONFLICT(k, backend) DO UPDATE SET path = excluded.path",
79 "fetch",
80 backend,
81 path,
82 );
83}
84
85export function writeWatermark(
86 db: Database,

Callers 1

writeFetchCursorFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected