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

Method UpdateCustomRole

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

Source from the content-addressed store, hash-verified

1242 UpdateChatWorkspaceBinding(ctx context.Context, arg UpdateChatWorkspaceBindingParams) (Chat, error)
1243 UpdateCryptoKeyDeletesAt(ctx context.Context, arg UpdateCryptoKeyDeletesAtParams) (CryptoKey, error)
1244 UpdateCustomRole(ctx context.Context, arg UpdateCustomRoleParams) (CustomRole, error)
1245 // Updates only the encrypted columns (api_key, api_key_key_id) and
1246 // the updated_at timestamp on a row. Used by the dbcrypt key
1247 // rotation utility to re-encrypt or decrypt rows in place.

Callers 7

TestReconcileSystemRoleFunction · 0.65
ReconcileSystemRoleFunction · 0.65
UpdateCustomRoleMethod · 0.65
TestSystemRolesFunction · 0.65
UpdateCustomRoleMethod · 0.65
TestUserMethod · 0.65
putOrgRolesMethod · 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 3

TestReconcileSystemRoleFunction · 0.52
TestSystemRolesFunction · 0.52
TestUserMethod · 0.52