MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / readDb

Function readDb

packages/baseai/src/utils/memory/db/lib.ts:82–87  ·  view source on GitHub ↗
(dbPath: string)

Source from the content-addressed store, hash-verified

80
81// Read an existing database
82export async function readDb(dbPath: string): Promise<Low<Schema>> {
83 const adapter = new JSONFile<Schema>(dbPath);
84 const db = new Low(adapter, defaultData);
85 await db.read();
86 return db;
87}
88
89// Delete a database
90export async function deleteDb(dbPath: string): Promise<void> {

Callers 1

loadDbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected