queryRowScan runs a single-row query with the default attachStepTimeout and scans the result into dest. On timeout dest is NOT written; callers must treat a non-nil error as "value unknown" (all current callers do).
(query string, dest ...any)
| 113 | // scans the result into dest. On timeout dest is NOT written; callers must |
| 114 | // treat a non-nil error as "value unknown" (all current callers do). |
| 115 | func (a *attachStepExecer) queryRowScan(query string, dest ...any) error { |
| 116 | return a.run(attachStepTimeout, query, func(ctx context.Context) error { |
| 117 | return a.db.QueryRowContext(ctx, query).Scan(dest...) |
| 118 | }) |
| 119 | } |
| 120 | |
| 121 | // run executes fn (one DuckDB statement) under a timeout. See the |
| 122 | // attachStepExecer doc comment for the two-layer deadline semantics. |