4646 issueCallback func (issues []* Ydb_Issue.IssueMessage )
4747 responsePartLimitBytes int64
4848 label string
49+ concurrentResultSets bool
4950 }
5051
5152 // Execute is an interface for execute method options
@@ -72,9 +73,12 @@ type (
7273 }
7374 execModeOption = ExecMode
7475 responsePartLimitBytes int64
75- issuesOption struct {
76+
77+ issuesOption struct {
7678 callback func ([]* Ydb_Issue.IssueMessage )
7779 }
80+
81+ concurrentResultSets bool
7882)
7983
8084func (poolID resourcePool ) applyExecuteOption (s * executeSettings ) {
@@ -132,6 +136,10 @@ func (opts issuesOption) applyExecuteOption(s *executeSettings) {
132136 s .issueCallback = opts .callback
133137}
134138
139+ func (opt concurrentResultSets ) applyExecuteOption (s * executeSettings ) {
140+ s .concurrentResultSets = bool (opt )
141+ }
142+
135143const (
136144 ExecModeParse = ExecMode (Ydb_Query .ExecMode_EXEC_MODE_PARSE )
137145 ExecModeValidate = ExecMode (Ydb_Query .ExecMode_EXEC_MODE_VALIDATE )
@@ -205,6 +213,10 @@ func (s *executeSettings) Label() string {
205213 return s .label
206214}
207215
216+ func (s * executeSettings ) ConcurrentResultSets () bool {
217+ return s .concurrentResultSets
218+ }
219+
208220func WithParameters (params params.Parameters ) parametersOption {
209221 return parametersOption {
210222 params : params ,
@@ -237,6 +249,10 @@ func WithResponsePartLimitSizeBytes(size int64) responsePartLimitBytes {
237249 return responsePartLimitBytes (size )
238250}
239251
252+ func WithConcurrentResultSets (isEnabled bool ) concurrentResultSets {
253+ return concurrentResultSets (isEnabled )
254+ }
255+
240256func (size responsePartLimitBytes ) applyExecuteOption (s * executeSettings ) {
241257 s .responsePartLimitBytes = int64 (size )
242258}
0 commit comments