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

Method InsertChatFile

coderd/database/dbauthz/dbauthz.go:5502–5505  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertChatFileParams)

Source from the content-addressed store, hash-verified

5500}
5501
5502func (q *querier) InsertChatFile(ctx context.Context, arg database.InsertChatFileParams) (database.InsertChatFileRow, error) {
5503 // Authorize create on chat resource scoped to the owner and org.
5504 return insert(q.log, q.auth, rbac.ResourceChat.WithOwner(arg.OwnerID.String()).InOrg(arg.OrganizationID), q.db.InsertChatFile)(ctx, arg)
5505}
5506
5507func (q *querier) InsertChatMessages(ctx context.Context, arg database.InsertChatMessagesParams) ([]database.ChatMessage, error) {
5508 // Authorize create on the parent chat (using update permission).

Callers

nothing calls this directly

Calls 4

insertFunction · 0.85
InOrgMethod · 0.80
WithOwnerMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected