MCPcopy Index your code
hub / github.com/payloadcms/payload / generateDatabaseSchema.ts

File generateDatabaseSchema.ts

test/generateDatabaseSchema.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import path from 'path'
2import { getPayload, type SanitizedConfig } from 'payload'
3import { loadEnv } from 'payload/node'
4import { fileURLToPath } from 'url'

Callers

nothing calls this directly

Calls 5

getPayloadFunction · 0.90
loadEnvFunction · 0.85
generateDatabaseAdapterFunction · 0.85
setTestEnvPathsFunction · 0.85
loadConfigFunction · 0.70

Tested by

no test coverage detected