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

Function exportNameVariants

packages/core/fumadb/src/schema/export.ts:3–17  ·  view source on GitHub ↗
(
  schema: AnySchema
)

Source from the content-addressed store, hash-verified

1import type { AnySchema, NameVariants } from "./create";
2
3export function exportNameVariants(
4 schema: AnySchema
5): Record<string, NameVariants> {
6 const out: Record<string, NameVariants> = {};
7
8 for (const table of Object.values(schema.tables)) {
9 out[table.ormName] = table.names;
10
11 for (const col of Object.values(table.columns)) {
12 out[`${table.ormName}.${col.ormName}`] = col.names;
13 }
14 }
15
16 return out;
17}

Callers 2

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected