Function
newMultiQueryChunkIter
(tctx *tcontext.Context, conn *sql.Conn, queries []string, argLen int)
Source from the content-addressed store, hash-verified
| 64 | } |
| 65 | |
| 66 | func newMultiQueryChunkIter(tctx *tcontext.Context, conn *sql.Conn, queries []string, argLen int) *multiQueriesChunkIter { |
| 67 | r := &multiQueriesChunkIter{ |
| 68 | tctx: tctx, |
| 69 | conn: conn, |
| 70 | queries: queries, |
| 71 | id: 0, |
| 72 | args: make([]any, argLen), |
| 73 | } |
| 74 | r.nextRows() |
| 75 | return r |
| 76 | } |
| 77 | |
| 78 | func (iter *multiQueriesChunkIter) nextRows() { |
| 79 | if iter.id >= len(iter.queries) { |
Tested by
no test coverage detected