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

Method UpdateEncryptedAIProviderSettings

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

Updates only the encrypted columns (settings, settings_key_id) and the updated_at timestamp on a row, regardless of its deleted flag. Used by the dbcrypt key rotation utility to re-encrypt or decrypt rows in place.

(ctx context.Context, arg UpdateEncryptedAIProviderSettingsParams)

Source from the content-addressed store, hash-verified

1251 // Used by the dbcrypt key rotation utility to re-encrypt or decrypt
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

Callers 6

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

TestAIBridgeMethod · 0.52