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

Function toLibsqlFileUrl

apps/host-selfhost/src/db/self-host-db.ts:48–49  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

46 * absolute path for `file:` URLs; `:memory:` passes through unchanged.
47 */
48export const toLibsqlFileUrl = (path: string): string =>
49 path === ":memory:" ? path : `file:${resolve(path)}`;
50
51type SelfHostFumaSchema<TTables extends FumaTables> = ReturnType<
52 typeof fumaSchema<string, TTables, RelationsMap<TTables>>

Callers 1

createSqliteExecutorDbFunction · 0.70

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected