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

Function nameVariants

packages/core/fumadb/src/schema/create.ts:901–914  ·  view source on GitHub ↗
(
  rawName: string,
  ormName: string,
  names?: Partial<NameVariants>
)

Source from the content-addressed store, hash-verified

899}
900
901function nameVariants(
902 rawName: string,
903 ormName: string,
904 names?: Partial<NameVariants>
905): NameVariants {
906 return {
907 convex: ormName,
908 drizzle: ormName,
909 prisma: ormName,
910 mongodb: rawName,
911 sql: rawName,
912 ...names,
913 };
914}
915
916export function compileForeignKey(key: ForeignKey, name: keyof NameVariants) {
917 return {

Callers 3

columnFunction · 0.85
idColumnFunction · 0.85
namesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected