Function
writeFetchCursorPath
(
db: Database,
path: string | null,
backend: string = DEFAULT_BACKEND_ID,
)
Source from the content-addressed store, hash-verified
| 69 | } |
| 70 | |
| 71 | function 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 | |
| 85 | export function writeWatermark( |
| 86 | db: Database, |
Tested by
no test coverage detected