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

Method LinkChatFiles

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

LinkChatFiles inserts file associations into the chat_file_links join table with deduplication (ON CONFLICT DO NOTHING). The INSERT is conditional: it only proceeds when the total number of links (existing + genuinely new) does not exceed max_file_links. Returns the number of genuinely new file IDs

(ctx context.Context, arg LinkChatFilesParams)

Source from the content-addressed store, hash-verified

1036 // already linked). A positive value means the cap blocked that many
1037 // new links.
1038 LinkChatFiles(ctx context.Context, arg LinkChatFilesParams) (int32, error)
1039 ListAIBridgeClients(ctx context.Context, arg ListAIBridgeClientsParams) ([]string, error)
1040 ListAIBridgeInterceptions(ctx context.Context, arg ListAIBridgeInterceptionsParams) ([]ListAIBridgeInterceptionsRow, error)
1041 // Finds all unique AI Bridge interception telemetry summaries combinations

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