MCPcopy Create free account
hub / github.com/instantdb/instant / readLocalSchemaFile

Function readLocalSchemaFile

client/packages/cli/src/old.js:413–422  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

411}
412
413export async function readLocalSchemaFile() {
414 const readCandidates = getSchemaReadCandidates();
415 const res = await loadConfig({
416 sources: readCandidates,
417 merge: false,
418 });
419 if (!res.config) return;
420 const relativePath = path.relative(process.cwd(), res.sources[0]);
421 return { path: relativePath, schema: res.config };
422}
423
424export async function readLocalEmailFile(emailPath) {
425 const readCandidates = getEmailReadCandidates(emailPath);

Callers

nothing calls this directly

Calls 2

getSchemaReadCandidatesFunction · 0.90
loadConfigFunction · 0.90

Tested by

no test coverage detected