MCPcopy Create free account
hub / github.com/vercel/vercel / buildDummySchema

Function buildDummySchema

packages/python/src/quirks/prisma.ts:34–52  ·  view source on GitHub ↗
(generatedDir: string)

Source from the content-addressed store, hash-verified

32}
33
34function buildDummySchema(generatedDir: string): string {
35 const lambdaTarget = getLambdaBinaryTarget();
36 return `\
37datasource db {
38 provider = "sqlite"
39 url = "file:dev.db"
40}
41
42generator client {
43 provider = "prisma-client-py"
44 binaryTargets = ["native", "${lambdaTarget}"]
45 output = "${generatedDir}"
46}
47
48model DummyModel {
49 id Int @id
50}
51`;
52}
53
54/**
55 * Find the user's Prisma schema.

Callers 1

runFunction · 0.85

Calls 1

getLambdaBinaryTargetFunction · 0.85

Tested by

no test coverage detected