MCPcopy Create free account
hub / github.com/Azarattum/CRStore / load

Function load

runtime/node.js:9–14  ·  view source on GitHub ↗
(file, paths)

Source from the content-addressed store, hash-verified

7 * @returns {Promise<{ database: any, env: "node" }>}
8 */
9export async function load(file, paths) {
10 const database = new SQLite(file, { nativeBinding: paths.binding });
11 database.pragma("journal_mode = WAL");
12 database.loadExtension(paths.extension || extensionPath);
13 return { database, env: "node" };
14}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected