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

Function createDB

packages/core/fumadb/test/shared.ts:32–43  ·  view source on GitHub ↗
(options: {
  provider: T;
  url: string;
  create: (url: string) => Pool;
})

Source from the content-addressed store, hash-verified

30);
31
32function createDB<T extends string, Pool>(options: {
33 provider: T;
34 url: string;
35 create: (url: string) => Pool;
36}) {
37 return {
38 ...options,
39 create(): Pool {
40 return options.create(options.url);
41 },
42 };
43}
44
45export const databases = [
46 createDB({

Callers 1

shared.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected