MCPcopy Create free account
hub / github.com/GoogleChrome/samples / getPoolForPFile

Function getPoolForPFile

sqlite-wasm-cos/sqlite3.mjs:19874–19874  ·  view source on GitHub ↗
(pFile)

Source from the content-addressed store, hash-verified

19872 /* Maps (sqlite3_file*) to OpfsSAHPool instances */
19873 const __mapSqlite3File = new Map();
19874 const getPoolForPFile = (pFile)=>__mapSqlite3File.get(pFile);
19875 const setPoolForPFile = (pFile,pool)=>{
19876 if(pool) __mapSqlite3File.set(pFile, pool);
19877 else __mapSqlite3File.delete(pFile);

Callers 1

sqlite3InitModuleFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected