import { openReadonlyOrFail } from '../../db/index.js';
/**
 * Open the graph database in readonly mode with a clean close() handle.
 */
export function openGraph(opts = {}) {
    const db = openReadonlyOrFail(opts.db);
    return { db, close: () => db.close() };
}
//# sourceMappingURL=open-graph.js.map