(ctx context.Context, arg UpdateAIProviderParams)
| 656 | } |
| 657 | |
| 658 | func (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 | |
| 685 | const updateEncryptedAIProviderSettings = `-- name: UpdateEncryptedAIProviderSettings :one |
| 686 | UPDATE |
nothing calls this directly
no test coverage detected