(ctx context.Context, name string)
| 493 | ` |
| 494 | |
| 495 | func (q *sqlQuerier) GetAIProviderByName(ctx context.Context, name string) (AIProvider, error) { |
| 496 | row := q.db.QueryRowContext(ctx, getAIProviderByName, name) |
| 497 | var i AIProvider |
| 498 | err := row.Scan( |
| 499 | &i.ID, |
| 500 | &i.Type, |
| 501 | &i.Name, |
| 502 | &i.DisplayName, |
| 503 | &i.Enabled, |
| 504 | &i.Deleted, |
| 505 | &i.BaseUrl, |
| 506 | &i.Settings, |
| 507 | &i.SettingsKeyID, |
| 508 | &i.CreatedAt, |
| 509 | &i.UpdatedAt, |
| 510 | ) |
| 511 | return i, err |
| 512 | } |
| 513 | |
| 514 | const getAIProviders = `-- name: GetAIProviders :many |
| 515 | SELECT |
nothing calls this directly
no test coverage detected