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

Method GetFileTemplates

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

Get all templates that use a file.

(ctx context.Context, fileID uuid.UUID)

Source from the content-addressed store, hash-verified

475 GetFileByID(ctx context.Context, id uuid.UUID) (File, error)
476 // Get all templates that use a file.
477 GetFileTemplates(ctx context.Context, fileID uuid.UUID) ([]GetFileTemplatesRow, error)
478 // Fetches inbox notifications for a user filtered by templates and targets
479 // param user_id: The user ID
480 // param templates: The template IDs to filter by - the template_id = ANY(@templates::UUID[]) condition checks if the template_id is in the @templates array

Callers 5

GetFileTemplatesMethod · 0.65
GetFileTemplatesMethod · 0.65
TestFileMethod · 0.65
TestSystemFunctionsMethod · 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 2

TestFileMethod · 0.52
TestSystemFunctionsMethod · 0.52