type alias QueryLogState

Properties

enabled: boolean
startTime: number

Whether the admin debug footer may render the captured queries. Separate from enabled (which only controls recording): recording is turned on early — before the route's settings load, so that query is captured — but the footer is staff-only and gated on this flag, set after auth.

readCounts: Map<string, number>

Per-request count of each read SQL string, for the N+1 guard

Usage

import { type QueryLogState } from "doc.ts";