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

Method FindMatchingPresetID

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

FindMatchingPresetID finds a preset ID that is the largest exact subset of the provided parameters. It returns the preset ID if a match is found, or NULL if no match is found. The query finds presets where all preset parameters are present in the provided parameters, and returns the preset with the

(ctx context.Context, arg FindMatchingPresetIDParams)

Source from the content-addressed store, hash-verified

256 // The query finds presets where all preset parameters are present in the provided parameters,
257 // and returns the preset with the most parameters (largest subset).
258 FindMatchingPresetID(ctx context.Context, arg FindMatchingPresetIDParams) (uuid.UUID, error)
259 GetAIBridgeInterceptionByID(ctx context.Context, id uuid.UUID) (AIBridgeInterception, error)
260 // Look up the parent interception and the root of the thread by finding
261 // which interception recorded a tool usage with the given tool call ID.

Callers 5

FindMatchingPresetIDMethod · 0.65
FindMatchingPresetIDMethod · 0.65
TestPrebuildsMethod · 0.65
FindMatchingPresetIDFunction · 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

TestPrebuildsMethod · 0.52