MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / toLibsqlFileUrl

Function toLibsqlFileUrl

apps/local/src/db/libsql.ts:17–18  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

15 * absolute path for `file:` URLs; `:memory:` passes through unchanged.
16 */
17const toLibsqlFileUrl = (path: string): string =>
18 path === ":memory:" ? path : `file:${resolve(path)}`;
19
20/** The database and the two sidecars WAL mode creates beside it. */
21const DB_FILE_SUFFIXES = ["", "-wal", "-shm"] as const;

Callers 1

openLocalLibsqlFunction · 0.70

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected