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

Function databaseTabPath

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

Source from the content-addressed store, hash-verified

230const DATABASE_TAB_PREFIX = 'zen://database/'
231
232export function databaseTabPath(csvPath: string): string {
233 return `${DATABASE_TAB_PREFIX}${encodeURIComponent(csvPath.replace(/^\/+/, ''))}`
234}
235
236export function isDatabaseTabPath(path: string | null | undefined): boolean {
237 return typeof path === 'string' && path.startsWith(DATABASE_TAB_PREFIX)

Callers 5

databases.test.tsFile · 0.90
store.tsFile · 0.90
store.test.tsFile · 0.90
EditorPaneFunction · 0.90
vim-nav.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected