MCPcopy Create free account
hub / github.com/PostHog/duckgres / idleInTransaction

Function idleInTransaction

controlplane/admin/ui/src/lib/session.ts:17–19  ·  view source on GitHub ↗
(state: string | undefined)

Source from the content-addressed store, hash-verified

15// transaction (and its worker) while running nothing. Worth distinguishing in
16// the UI from a plain idle connection.
17export function idleInTransaction(state: string | undefined): boolean {
18 return (state ?? "").toLowerCase().startsWith("idle in transaction");
19}
20
21// sessionStateLabel is the short human label for a session state, for tooltips.
22export function sessionStateLabel(state: string | undefined): string {

Callers 2

LiveFunction · 0.90
session.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected