MCPcopy
hub / github.com/QwikDev/qwik / getDB

Function getDB

packages/insights/src/db/index.ts:9–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7let _db!: AppDatabase;
8
9export function getDB() {
10 // eslint-disable-next-line
11 if (!_db) {
12 throw new Error('DB not set');
13 }
14 return _db;
15}
16
17export async function initializeDbIfNeeded(factory: () => Promise<AppDatabase>) {
18 // eslint-disable-next-line

Callers 15

index.tsxFile · 0.90
index.tsxFile · 0.90
index.tsxFile · 0.90
index.tsxFile · 0.90
index.tsxFile · 0.90
index.tsxFile · 0.90
index.tsxFile · 0.90
index.tsxFile · 0.90
index.tsxFile · 0.90
index.tsxFile · 0.90
index.tsxFile · 0.90
index.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…