Query sets fn to be called when the response to qq is received.
(fn func(row Row) error)
| 36 | |
| 37 | // Query sets fn to be called when the response to qq is received. |
| 38 | func (qq *QueuedQuery) QueryRow(fn func(row Row) error) { |
| 39 | qq.Fn = func(br BatchResults) error { |
| 40 | row := br.QueryRow() |
| 41 | return fn(row) |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | // Exec sets fn to be called when the response to qq is received. |
| 46 | // |