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

Method UpsertUserAIProviderKey

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

UpsertUserAIProviderKey preserves the original id and created_at when the user/provider pair already exists. On conflict, callers provide id and created_at for the insert path only.

(ctx context.Context, arg UpsertUserAIProviderKeyParams)

Source from the content-addressed store, hash-verified

1430 // user/provider pair already exists. On conflict, callers provide id and
1431 // created_at for the insert path only.
1432 UpsertUserAIProviderKey(ctx context.Context, arg UpsertUserAIProviderKeyParams) (UserAiProviderKey, error)
1433 UpsertUserChatDebugLoggingEnabled(ctx context.Context, arg UpsertUserChatDebugLoggingEnabledParams) error
1434 UpsertUserChatPersonalModelOverride(ctx context.Context, arg UpsertUserChatPersonalModelOverrideParams) error
1435 UpsertWebpushVAPIDKeys(ctx context.Context, arg UpsertWebpushVAPIDKeysParams) 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