MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / databaseSchemaPathFor

Function databaseSchemaPathFor

packages/shared-domain/src/databases.ts:72–75  ·  view source on GitHub ↗
(csvPath: string)

Source from the content-addressed store, hash-verified

70
71/** The `schema.json` path for a database's `data.csv` path, or null. */
72export function databaseSchemaPathFor(csvPath: string): string | null {
73 const dir = formDirFromCsvPath(csvPath)
74 return dir ? `${dir}/${FORM_SCHEMA_FILE}` : null
75}
76
77/** The pages-dir path for a database's `data.csv` path, or null. */
78export function pagesDirFromCsvPath(csvPath: string): string | null {

Callers 4

databases.test.tsFile · 0.90
databaseSidecarPathFunction · 0.90
dbReadSidecarFunction · 0.90
dbPersistSidecarFunction · 0.90

Calls 1

formDirFromCsvPathFunction · 0.85

Tested by

no test coverage detected