MCPcopy Create free account
hub / github.com/Orgnise/webapp / constructor

Method constructor

src/lib/db/query-optimizer.ts:30–37  ·  view source on GitHub ↗
(client: MongoClient)

Source from the content-addressed store, hash-verified

28 private metrics: QueryPerformanceMetrics;
29
30 constructor(client: MongoClient) {
31 this.client = client;
32 this.metrics = {
33 queryCount: 0,
34 startTime: Date.now(),
35 queries: []
36 };
37 }
38
39 private trackQuery(collection: string, operation: string) {
40 this.metrics.queryCount++;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected