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

Method UpdateChatDebugStep

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

Uses COALESCE so that passing NULL from Go means "keep the existing value." This is intentional: debug rows follow a write-once-finalize pattern where fields are set at creation or finalization and never cleared back to NULL. The @now parameter keeps updated_at under the caller's clock, matching the

(ctx context.Context, arg UpdateChatDebugStepParams)

Source from the content-addressed store, hash-verified

1206 // parameter keeps updated_at under the caller's clock, matching
1207 // the injectable quartz.Clock used by FinalizeStale sweeps.
1208 UpdateChatDebugStep(ctx context.Context, arg UpdateChatDebugStepParams) (ChatDebugStep, error)
1209 // Bumps the heartbeat timestamp for the given set of chat IDs,
1210 // provided they are still running and owned by the specified
1211 // worker. Returns the IDs that were actually updated so the

Callers 9

TestChatDebugSQLGuardsFunction · 0.65
UpdateChatDebugStepMethod · 0.65
UpdateChatDebugStepMethod · 0.65
TestChatsMethod · 0.65
UpdateStepMethod · 0.65
expectUpdateStepFunction · 0.65

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

Tested by 6

TestChatDebugSQLGuardsFunction · 0.52
TestChatsMethod · 0.52
expectUpdateStepFunction · 0.52