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

Method UpdateEncryptedUserAIProviderKey

coderd/database/querier.go:1254–1254  ·  view source on GitHub ↗
(ctx context.Context, arg UpdateEncryptedUserAIProviderKeyParams)

Source from the content-addressed store, hash-verified

1252 // rows in place.
1253 UpdateEncryptedAIProviderSettings(ctx context.Context, arg UpdateEncryptedAIProviderSettingsParams) (AIProvider, error)
1254 UpdateEncryptedUserAIProviderKey(ctx context.Context, arg UpdateEncryptedUserAIProviderKeyParams) (UserAiProviderKey, error)
1255 UpdateExternalAuthLink(ctx context.Context, arg UpdateExternalAuthLinkParams) (ExternalAuthLink, error)
1256 // Optimistic lock: only update the row if the refresh token in the database
1257 // still matches the one we read before attempting the refresh. This prevents

Callers 7

TestAIBridgeMethod · 0.65
RotateFunction · 0.65
DecryptFunction · 0.65
TestUserAIProviderKeysFunction · 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

TestAIBridgeMethod · 0.52
TestUserAIProviderKeysFunction · 0.52