(ctx context.Context, id uuid.UUID)
| 433 | ` |
| 434 | |
| 435 | func (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 | |
| 454 | const getAIProviderByIDForReferenceLock = `-- name: GetAIProviderByIDForReferenceLock :one |
| 455 | SELECT |
nothing calls this directly
no test coverage detected