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

Method GetAIProviderByID

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

Source from the content-addressed store, hash-verified

433`
434
435func (q *sqlQuerier) GetAIProviderByID(ctx context.Context, id uuid.UUID) (AIProvider, error) {
436 row := q.db.QueryRowContext(ctx, getAIProviderByID, id)
437 var i AIProvider
438 err := row.Scan(
439 &i.ID,
440 &i.Type,
441 &i.Name,
442 &i.DisplayName,
443 &i.Enabled,
444 &i.Deleted,
445 &i.BaseUrl,
446 &i.Settings,
447 &i.SettingsKeyID,
448 &i.CreatedAt,
449 &i.UpdatedAt,
450 )
451 return i, err
452}
453
454const getAIProviderByIDForReferenceLock = `-- name: GetAIProviderByIDForReferenceLock :one
455SELECT

Callers

nothing calls this directly

Calls 2

QueryRowContextMethod · 0.80
ScanMethod · 0.45

Tested by

no test coverage detected