MCPcopy
hub / github.com/chartdb/chartdb / generateCacheKey

Function generateCacheKey

src/lib/data/sql-export/export-sql-cache.ts:21–27  ·  view source on GitHub ↗
(
    databaseType: DatabaseType,
    sqlScript: string
)

Source from the content-addressed store, hash-verified

19};
20
21export const generateCacheKey = async (
22 databaseType: DatabaseType,
23 sqlScript: string
24): Promise<string> => {
25 const rawKey = `${databaseType}:${sqlScript}`;
26 return await sha256(rawKey);
27};

Callers 1

exportSQLFunction · 0.90

Calls 1

sha256Function · 0.90

Tested by

no test coverage detected