QueryRow is a convenience wrapper over Query. Any error that occurs while querying is deferred until calling Scan on the returned Row. That Row will error with ErrNoRows if no rows are returned.
(ctx context.Context, sql string, args ...any)
| 929 | // querying is deferred until calling Scan on the returned Row. That Row will |
| 930 | // error with ErrNoRows if no rows are returned. |
| 931 | func (c *Conn) QueryRow(ctx context.Context, sql string, args ...any) Row { |
| 932 | rows, _ := c.Query(ctx, sql, args...) |
| 933 | return (*connRow)(rows.(*baseRows)) |
| 934 | } |
| 935 | |
| 936 | // SendBatch sends all queued queries to the server at once. All queries are run in an implicit transaction unless |
| 937 | // explicit transaction control statements are executed. The returned [BatchResults] must be closed before the connection |
no test coverage detected