MCPcopy
hub / github.com/prisma/prisma / loadSchemaFiles

Function loadSchemaFiles

packages/schema-files-loader/src/loadSchemaFiles.ts:11–17  ·  view source on GitHub ↗
(
  folderPath: string,
  filesResolver: FilesResolver = realFsResolver,
)

Source from the content-addressed store, hash-verified

9 * @param folderPath
10 */
11export async function loadSchemaFiles(
12 folderPath: string,
13 filesResolver: FilesResolver = realFsResolver,
14): Promise<LoadedFile[]> {
15 const type = await filesResolver.getEntryType(folderPath)
16 return processEntry(folderPath, type, filesResolver)
17}
18
19async function processEntry(
20 entryPath: string,

Callers 3

loadRelatedSchemaFilesFunction · 0.90
readSchemaFromDirectoryFunction · 0.90

Calls 2

processEntryFunction · 0.85
getEntryTypeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…