MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / deleteFixtures

Function deleteFixtures

test/fixtures.ts:376–391  ·  view source on GitHub ↗
(client: ChClient, projectId: string)

Source from the content-addressed store, hash-verified

374}
375
376async function deleteFixtures(client: ChClient, projectId: string) {
377 await Promise.all([
378 client.command({
379 query: `DELETE FROM openpanel.profiles WHERE project_id = '${projectId}'`,
380 }),
381 client.command({
382 query: `DELETE FROM openpanel.events WHERE project_id = '${projectId}'`,
383 }),
384 client.command({
385 query: `DELETE FROM openpanel.sessions WHERE project_id = '${projectId}'`,
386 }),
387 client.command({
388 query: `ALTER TABLE openpanel.distinct_event_names_mv DELETE WHERE project_id = '${projectId}'`,
389 }),
390 ]);
391}
392
393// ---------------------------------------------------------------------------
394// Public API

Callers 2

setupFixturesFunction · 0.70
teardownFixturesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected