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

Method BackfillChatModelConfigProvider

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

old_provider is matched as text; new_provider is also cast to ai_provider_type for the EXISTS check against ai_providers.type. ai_provider_id IS NOT NULL is defensive; the check constraint already enforces that non-deleted rows always have a provider ID.

(ctx context.Context, arg BackfillChatModelConfigProviderParams)

Source from the content-addressed store, hash-verified

76 // ai_provider_id IS NOT NULL is defensive; the check constraint already
77 // enforces that non-deleted rows always have a provider ID.
78 BackfillChatModelConfigProvider(ctx context.Context, arg BackfillChatModelConfigProviderParams) (sql.Result, error)
79 BackoffChatDiffStatus(ctx context.Context, arg BackoffChatDiffStatusParams) error
80 BatchUpdateWorkspaceAgentMetadata(ctx context.Context, arg BatchUpdateWorkspaceAgentMetadataParams) error
81 BatchUpdateWorkspaceLastUsedAt(ctx context.Context, arg BatchUpdateWorkspaceLastUsedAtParams) error

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

TestAIBridgeMethod · 0.52