MCPcopy Index your code
hub / github.com/coder/coder / InsertChatDebugRun

Method InsertChatDebugRun

coderd/database/querier.go:939–939  ·  view source on GitHub ↗

updated_at is the retention clock used by DeleteOldChatDebugRuns. Set it on every write to keep retention semantics correct.

(ctx context.Context, arg InsertChatDebugRunParams)

Source from the content-addressed store, hash-verified

937 // updated_at is the retention clock used by DeleteOldChatDebugRuns.
938 // Set it on every write to keep retention semantics correct.
939 InsertChatDebugRun(ctx context.Context, arg InsertChatDebugRunParams) (ChatDebugRun, error)
940 // The CTE atomically locks the parent run via UPDATE, bumps its
941 // updated_at (eliminating a separate TouchChatDebugRunUpdatedAt
942 // call), and enforces the finalization guard: if the run is already

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls