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

Method GetAIProviderKeyByID

coderd/database/queries.sql.go:135–147  ·  view source on GitHub ↗
(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

133`
134
135func (q *sqlQuerier) GetAIProviderKeyByID(ctx context.Context, id uuid.UUID) (AIProviderKey, error) {
136 row := q.db.QueryRowContext(ctx, getAIProviderKeyByID, id)
137 var i AIProviderKey
138 err := row.Scan(
139 &i.ID,
140 &i.ProviderID,
141 &i.APIKey,
142 &i.ApiKeyKeyID,
143 &i.CreatedAt,
144 &i.UpdatedAt,
145 )
146 return i, err
147}
148
149const getAIProviderKeyPresence = `-- name: GetAIProviderKeyPresence :many
150SELECT DISTINCT

Callers

nothing calls this directly

Calls 2

QueryRowContextMethod · 0.80
ScanMethod · 0.45

Tested by

no test coverage detected