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

Function toLibsqlFileUrl

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

Source from the content-addressed store, hash-verified

14 * absolute path for `file:` URLs; `:memory:` passes through unchanged.
15 */
16const toLibsqlFileUrl = (path: string): string =>
17 path === ":memory:" ? path : `file:${resolve(path)}`;
18
19/**
20 * Open a libSQL client for a local on-disk DB and apply the per-connection

Callers 1

openLocalLibsqlFunction · 0.70

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected