MCPcopy Create free account
hub / github.com/coder/coder / DeleteOldBoundaryLogs

Method DeleteOldBoundaryLogs

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

Deletes boundary logs older than the given time, bounded by a row limit to avoid long-running transactions.

(ctx context.Context, arg DeleteOldBoundaryLogsParams)

Source from the content-addressed store, hash-verified

166 // Deletes boundary logs older than the given time, bounded by a row limit
167 // to avoid long-running transactions.
168 DeleteOldBoundaryLogs(ctx context.Context, arg DeleteOldBoundaryLogsParams) (int64, error)
169 // updated_at is the retention clock, so the window starts after the run
170 // stops being written to.
171 // Intentionally no finished_at IS NOT NULL guard: abandoned in-flight rows

Callers 3

DeleteOldBoundaryLogsMethod · 0.65
DeleteOldBoundaryLogsMethod · 0.65
TestBoundaryLogsMethod · 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 1

TestBoundaryLogsMethod · 0.52