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

Method UpdateChatDebugRun

coderd/database/querier.go:1201–1201  ·  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. updated_at i

(ctx context.Context, arg UpdateChatDebugRunParams)

Source from the content-addressed store, hash-verified

1199 // calculations stable regardless of how many times the row is
1200 // updated.
1201 UpdateChatDebugRun(ctx context.Context, arg UpdateChatDebugRunParams) (ChatDebugRun, error)
1202 // Uses COALESCE so that passing NULL from Go means "keep the
1203 // existing value." This is intentional: debug rows follow a
1204 // write-once-finalize pattern where fields are set at creation

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