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

Method UpsertDefaultProxy

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

The default proxy is implied and not actually stored in the database. So we need to store it's configuration here for display purposes. The functional values are immutable and controlled implicitly.

(ctx context.Context, arg UpsertDefaultProxyParams)

Source from the content-addressed store, hash-verified

1403 // So we need to store it's configuration here for display purposes.
1404 // The functional values are immutable and controlled implicitly.
1405 UpsertDefaultProxy(ctx context.Context, arg UpsertDefaultProxyParams) error
1406 UpsertGroupAIBudget(ctx context.Context, arg UpsertGroupAIBudgetParams) (GroupAiBudget, error)
1407 UpsertHealthSettings(ctx context.Context, value string) error
1408 UpsertLastUpdateCheck(ctx context.Context, value string) error

Callers 5

TestDefaultProxyFunction · 0.65
UpsertDefaultProxyMethod · 0.65
UpsertDefaultProxyMethod · 0.65
TestSystemFunctionsMethod · 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 2

TestDefaultProxyFunction · 0.52
TestSystemFunctionsMethod · 0.52