(ctx context.Context, step StepRow)
| 136 | } |
| 137 | |
| 138 | func (s *sqliteStore) AppendStep(ctx context.Context, step StepRow) error { |
| 139 | _, err := s.db.ExecContext(ctx, ` |
| 140 | INSERT INTO request_steps ( |
| 141 | request_id, step_index, step_type, input_json, output_json, backend, status, error, latency_ms, metadata_json |
| 142 | ) VALUES (?,?,?,?,?,?,?,?,?,?)`, |
| 143 | step.RequestID, step.StepIndex, step.StepType, string(step.InputJSON), string(step.OutputJSON), |
| 144 | step.Backend, step.Status, step.Error, step.LatencyMs, string(step.MetadataJSON), |
| 145 | ) |
| 146 | return err |
| 147 | } |
| 148 | |
| 149 | func (s *sqliteStore) GetRequest(ctx context.Context, requestID string) (RequestRow, error) { |
| 150 | row := s.db.QueryRowContext(ctx, ` |
nothing calls this directly
no outgoing calls
no test coverage detected