MCPcopy
hub / github.com/pingcap/tidb / newMultiQueryChunkIter

Function newMultiQueryChunkIter

dumpling/export/ir_impl.go:66–76  ·  view source on GitHub ↗
(tctx *tcontext.Context, conn *sql.Conn, queries []string, argLen int)

Source from the content-addressed store, hash-verified

64}
65
66func 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
78func (iter *multiQueriesChunkIter) nextRows() {
79 if iter.id >= len(iter.queries) {

Callers 1

RowsMethod · 0.85

Calls 1

nextRowsMethod · 0.95

Tested by

no test coverage detected