MCPcopy
hub / github.com/codedogQBY/ReadAny / getDatabaseLocation

Function getDatabaseLocation

packages/core/src/db/db-core.ts:73–80  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

71}
72
73async function getDatabaseLocation(filename: string): Promise<string> {
74 const platform = getPlatformService();
75 if (!platform.isDesktop) {
76 return filename;
77 }
78
79 return `sqlite:${await getDatabaseFilePath(filename)}`;
80}
81
82async function configureDatabaseConnection(database: IDatabase): Promise<void> {
83 try {

Callers 2

getDBFunction · 0.85
getLocalDBFunction · 0.85

Calls 2

getPlatformServiceFunction · 0.90
getDatabaseFilePathFunction · 0.85

Tested by

no test coverage detected