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

Method UpdateAIProvider

coderd/database/queries.sql.go:658–683  ·  view source on GitHub ↗
(ctx context.Context, arg UpdateAIProviderParams)

Source from the content-addressed store, hash-verified

656}
657
658func (q *sqlQuerier) UpdateAIProvider(ctx context.Context, arg UpdateAIProviderParams) (AIProvider, error) {
659 row := q.db.QueryRowContext(ctx, updateAIProvider,
660 arg.Type,
661 arg.DisplayName,
662 arg.Enabled,
663 arg.BaseUrl,
664 arg.Settings,
665 arg.SettingsKeyID,
666 arg.ID,
667 )
668 var i AIProvider
669 err := row.Scan(
670 &i.ID,
671 &i.Type,
672 &i.Name,
673 &i.DisplayName,
674 &i.Enabled,
675 &i.Deleted,
676 &i.BaseUrl,
677 &i.Settings,
678 &i.SettingsKeyID,
679 &i.CreatedAt,
680 &i.UpdatedAt,
681 )
682 return i, err
683}
684
685const updateEncryptedAIProviderSettings = `-- name: UpdateEncryptedAIProviderSettings :one
686UPDATE

Callers

nothing calls this directly

Calls 2

QueryRowContextMethod · 0.80
ScanMethod · 0.45

Tested by

no test coverage detected