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

Method InsertChat

coderd/database/dbauthz/dbauthz.go:5471–5473  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertChatParams)

Source from the content-addressed store, hash-verified

5469}
5470
5471func (q *querier) InsertChat(ctx context.Context, arg database.InsertChatParams) (database.Chat, error) {
5472 return insert(q.log, q.auth, rbac.ResourceChat.WithOwner(arg.OwnerID.String()).InOrg(arg.OrganizationID), q.db.InsertChat)(ctx, arg)
5473}
5474
5475func (q *querier) InsertChatDebugRun(ctx context.Context, arg database.InsertChatDebugRunParams) (database.ChatDebugRun, error) {
5476 chat, err := q.db.GetChatByID(ctx, arg.ChatID)

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