github.com/ydb-platform/ydb-go-sdk/v3@v3.89.2/trace/table_gtrace.go (about) 1 // Code generated by gtrace. DO NOT EDIT. 2 3 package trace 4 5 import ( 6 "context" 7 ) 8 9 // tableComposeOptions is a holder of options 10 type tableComposeOptions struct { 11 panicCallback func(e interface{}) 12 } 13 14 // TableOption specified Table compose option 15 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 16 type TableComposeOption func(o *tableComposeOptions) 17 18 // WithTablePanicCallback specified behavior on panic 19 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 20 func WithTablePanicCallback(cb func(e interface{})) TableComposeOption { 21 return func(o *tableComposeOptions) { 22 o.panicCallback = cb 23 } 24 } 25 26 // Compose returns a new Table which has functional fields composed both from t and x. 27 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 28 func (t *Table) Compose(x *Table, opts ...TableComposeOption) *Table { 29 if t == nil { 30 return x 31 } 32 var ret Table 33 options := tableComposeOptions{} 34 for _, opt := range opts { 35 if opt != nil { 36 opt(&options) 37 } 38 } 39 { 40 h1 := t.OnInit 41 h2 := x.OnInit 42 ret.OnInit = func(t TableInitStartInfo) func(TableInitDoneInfo) { 43 if options.panicCallback != nil { 44 defer func() { 45 if e := recover(); e != nil { 46 options.panicCallback(e) 47 } 48 }() 49 } 50 var r, r1 func(TableInitDoneInfo) 51 if h1 != nil { 52 r = h1(t) 53 } 54 if h2 != nil { 55 r1 = h2(t) 56 } 57 return func(t TableInitDoneInfo) { 58 if options.panicCallback != nil { 59 defer func() { 60 if e := recover(); e != nil { 61 options.panicCallback(e) 62 } 63 }() 64 } 65 if r != nil { 66 r(t) 67 } 68 if r1 != nil { 69 r1(t) 70 } 71 } 72 } 73 } 74 { 75 h1 := t.OnClose 76 h2 := x.OnClose 77 ret.OnClose = func(t TableCloseStartInfo) func(TableCloseDoneInfo) { 78 if options.panicCallback != nil { 79 defer func() { 80 if e := recover(); e != nil { 81 options.panicCallback(e) 82 } 83 }() 84 } 85 var r, r1 func(TableCloseDoneInfo) 86 if h1 != nil { 87 r = h1(t) 88 } 89 if h2 != nil { 90 r1 = h2(t) 91 } 92 return func(t TableCloseDoneInfo) { 93 if options.panicCallback != nil { 94 defer func() { 95 if e := recover(); e != nil { 96 options.panicCallback(e) 97 } 98 }() 99 } 100 if r != nil { 101 r(t) 102 } 103 if r1 != nil { 104 r1(t) 105 } 106 } 107 } 108 } 109 { 110 h1 := t.OnDo 111 h2 := x.OnDo 112 ret.OnDo = func(t TableDoStartInfo) func(TableDoDoneInfo) { 113 if options.panicCallback != nil { 114 defer func() { 115 if e := recover(); e != nil { 116 options.panicCallback(e) 117 } 118 }() 119 } 120 var r, r1 func(TableDoDoneInfo) 121 if h1 != nil { 122 r = h1(t) 123 } 124 if h2 != nil { 125 r1 = h2(t) 126 } 127 return func(t TableDoDoneInfo) { 128 if options.panicCallback != nil { 129 defer func() { 130 if e := recover(); e != nil { 131 options.panicCallback(e) 132 } 133 }() 134 } 135 if r != nil { 136 r(t) 137 } 138 if r1 != nil { 139 r1(t) 140 } 141 } 142 } 143 } 144 { 145 h1 := t.OnDoTx 146 h2 := x.OnDoTx 147 ret.OnDoTx = func(t TableDoTxStartInfo) func(TableDoTxDoneInfo) { 148 if options.panicCallback != nil { 149 defer func() { 150 if e := recover(); e != nil { 151 options.panicCallback(e) 152 } 153 }() 154 } 155 var r, r1 func(TableDoTxDoneInfo) 156 if h1 != nil { 157 r = h1(t) 158 } 159 if h2 != nil { 160 r1 = h2(t) 161 } 162 return func(t TableDoTxDoneInfo) { 163 if options.panicCallback != nil { 164 defer func() { 165 if e := recover(); e != nil { 166 options.panicCallback(e) 167 } 168 }() 169 } 170 if r != nil { 171 r(t) 172 } 173 if r1 != nil { 174 r1(t) 175 } 176 } 177 } 178 } 179 { 180 h1 := t.OnBulkUpsert 181 h2 := x.OnBulkUpsert 182 ret.OnBulkUpsert = func(t TableBulkUpsertStartInfo) func(TableBulkUpsertDoneInfo) { 183 if options.panicCallback != nil { 184 defer func() { 185 if e := recover(); e != nil { 186 options.panicCallback(e) 187 } 188 }() 189 } 190 var r, r1 func(TableBulkUpsertDoneInfo) 191 if h1 != nil { 192 r = h1(t) 193 } 194 if h2 != nil { 195 r1 = h2(t) 196 } 197 return func(t TableBulkUpsertDoneInfo) { 198 if options.panicCallback != nil { 199 defer func() { 200 if e := recover(); e != nil { 201 options.panicCallback(e) 202 } 203 }() 204 } 205 if r != nil { 206 r(t) 207 } 208 if r1 != nil { 209 r1(t) 210 } 211 } 212 } 213 } 214 { 215 h1 := t.OnCreateSession 216 h2 := x.OnCreateSession 217 ret.OnCreateSession = func(t TableCreateSessionStartInfo) func(TableCreateSessionDoneInfo) { 218 if options.panicCallback != nil { 219 defer func() { 220 if e := recover(); e != nil { 221 options.panicCallback(e) 222 } 223 }() 224 } 225 var r, r1 func(TableCreateSessionDoneInfo) 226 if h1 != nil { 227 r = h1(t) 228 } 229 if h2 != nil { 230 r1 = h2(t) 231 } 232 return func(t TableCreateSessionDoneInfo) { 233 if options.panicCallback != nil { 234 defer func() { 235 if e := recover(); e != nil { 236 options.panicCallback(e) 237 } 238 }() 239 } 240 if r != nil { 241 r(t) 242 } 243 if r1 != nil { 244 r1(t) 245 } 246 } 247 } 248 } 249 { 250 h1 := t.OnSessionNew 251 h2 := x.OnSessionNew 252 ret.OnSessionNew = func(t TableSessionNewStartInfo) func(TableSessionNewDoneInfo) { 253 if options.panicCallback != nil { 254 defer func() { 255 if e := recover(); e != nil { 256 options.panicCallback(e) 257 } 258 }() 259 } 260 var r, r1 func(TableSessionNewDoneInfo) 261 if h1 != nil { 262 r = h1(t) 263 } 264 if h2 != nil { 265 r1 = h2(t) 266 } 267 return func(t TableSessionNewDoneInfo) { 268 if options.panicCallback != nil { 269 defer func() { 270 if e := recover(); e != nil { 271 options.panicCallback(e) 272 } 273 }() 274 } 275 if r != nil { 276 r(t) 277 } 278 if r1 != nil { 279 r1(t) 280 } 281 } 282 } 283 } 284 { 285 h1 := t.OnSessionDelete 286 h2 := x.OnSessionDelete 287 ret.OnSessionDelete = func(t TableSessionDeleteStartInfo) func(TableSessionDeleteDoneInfo) { 288 if options.panicCallback != nil { 289 defer func() { 290 if e := recover(); e != nil { 291 options.panicCallback(e) 292 } 293 }() 294 } 295 var r, r1 func(TableSessionDeleteDoneInfo) 296 if h1 != nil { 297 r = h1(t) 298 } 299 if h2 != nil { 300 r1 = h2(t) 301 } 302 return func(t TableSessionDeleteDoneInfo) { 303 if options.panicCallback != nil { 304 defer func() { 305 if e := recover(); e != nil { 306 options.panicCallback(e) 307 } 308 }() 309 } 310 if r != nil { 311 r(t) 312 } 313 if r1 != nil { 314 r1(t) 315 } 316 } 317 } 318 } 319 { 320 h1 := t.OnSessionKeepAlive 321 h2 := x.OnSessionKeepAlive 322 ret.OnSessionKeepAlive = func(t TableKeepAliveStartInfo) func(TableKeepAliveDoneInfo) { 323 if options.panicCallback != nil { 324 defer func() { 325 if e := recover(); e != nil { 326 options.panicCallback(e) 327 } 328 }() 329 } 330 var r, r1 func(TableKeepAliveDoneInfo) 331 if h1 != nil { 332 r = h1(t) 333 } 334 if h2 != nil { 335 r1 = h2(t) 336 } 337 return func(t TableKeepAliveDoneInfo) { 338 if options.panicCallback != nil { 339 defer func() { 340 if e := recover(); e != nil { 341 options.panicCallback(e) 342 } 343 }() 344 } 345 if r != nil { 346 r(t) 347 } 348 if r1 != nil { 349 r1(t) 350 } 351 } 352 } 353 } 354 { 355 h1 := t.OnSessionBulkUpsert 356 h2 := x.OnSessionBulkUpsert 357 ret.OnSessionBulkUpsert = func(t TableSessionBulkUpsertStartInfo) func(TableSessionBulkUpsertDoneInfo) { 358 if options.panicCallback != nil { 359 defer func() { 360 if e := recover(); e != nil { 361 options.panicCallback(e) 362 } 363 }() 364 } 365 var r, r1 func(TableSessionBulkUpsertDoneInfo) 366 if h1 != nil { 367 r = h1(t) 368 } 369 if h2 != nil { 370 r1 = h2(t) 371 } 372 return func(t TableSessionBulkUpsertDoneInfo) { 373 if options.panicCallback != nil { 374 defer func() { 375 if e := recover(); e != nil { 376 options.panicCallback(e) 377 } 378 }() 379 } 380 if r != nil { 381 r(t) 382 } 383 if r1 != nil { 384 r1(t) 385 } 386 } 387 } 388 } 389 { 390 h1 := t.OnSessionQueryPrepare 391 h2 := x.OnSessionQueryPrepare 392 ret.OnSessionQueryPrepare = func(t TablePrepareDataQueryStartInfo) func(TablePrepareDataQueryDoneInfo) { 393 if options.panicCallback != nil { 394 defer func() { 395 if e := recover(); e != nil { 396 options.panicCallback(e) 397 } 398 }() 399 } 400 var r, r1 func(TablePrepareDataQueryDoneInfo) 401 if h1 != nil { 402 r = h1(t) 403 } 404 if h2 != nil { 405 r1 = h2(t) 406 } 407 return func(t TablePrepareDataQueryDoneInfo) { 408 if options.panicCallback != nil { 409 defer func() { 410 if e := recover(); e != nil { 411 options.panicCallback(e) 412 } 413 }() 414 } 415 if r != nil { 416 r(t) 417 } 418 if r1 != nil { 419 r1(t) 420 } 421 } 422 } 423 } 424 { 425 h1 := t.OnSessionQueryExecute 426 h2 := x.OnSessionQueryExecute 427 ret.OnSessionQueryExecute = func(t TableExecuteDataQueryStartInfo) func(TableExecuteDataQueryDoneInfo) { 428 if options.panicCallback != nil { 429 defer func() { 430 if e := recover(); e != nil { 431 options.panicCallback(e) 432 } 433 }() 434 } 435 var r, r1 func(TableExecuteDataQueryDoneInfo) 436 if h1 != nil { 437 r = h1(t) 438 } 439 if h2 != nil { 440 r1 = h2(t) 441 } 442 return func(t TableExecuteDataQueryDoneInfo) { 443 if options.panicCallback != nil { 444 defer func() { 445 if e := recover(); e != nil { 446 options.panicCallback(e) 447 } 448 }() 449 } 450 if r != nil { 451 r(t) 452 } 453 if r1 != nil { 454 r1(t) 455 } 456 } 457 } 458 } 459 { 460 h1 := t.OnSessionQueryExplain 461 h2 := x.OnSessionQueryExplain 462 ret.OnSessionQueryExplain = func(t TableExplainQueryStartInfo) func(TableExplainQueryDoneInfo) { 463 if options.panicCallback != nil { 464 defer func() { 465 if e := recover(); e != nil { 466 options.panicCallback(e) 467 } 468 }() 469 } 470 var r, r1 func(TableExplainQueryDoneInfo) 471 if h1 != nil { 472 r = h1(t) 473 } 474 if h2 != nil { 475 r1 = h2(t) 476 } 477 return func(t TableExplainQueryDoneInfo) { 478 if options.panicCallback != nil { 479 defer func() { 480 if e := recover(); e != nil { 481 options.panicCallback(e) 482 } 483 }() 484 } 485 if r != nil { 486 r(t) 487 } 488 if r1 != nil { 489 r1(t) 490 } 491 } 492 } 493 } 494 { 495 h1 := t.OnSessionQueryStreamExecute 496 h2 := x.OnSessionQueryStreamExecute 497 ret.OnSessionQueryStreamExecute = func(t TableSessionQueryStreamExecuteStartInfo) func(TableSessionQueryStreamExecuteDoneInfo) { 498 if options.panicCallback != nil { 499 defer func() { 500 if e := recover(); e != nil { 501 options.panicCallback(e) 502 } 503 }() 504 } 505 var r, r1 func(TableSessionQueryStreamExecuteDoneInfo) 506 if h1 != nil { 507 r = h1(t) 508 } 509 if h2 != nil { 510 r1 = h2(t) 511 } 512 return func(t TableSessionQueryStreamExecuteDoneInfo) { 513 if options.panicCallback != nil { 514 defer func() { 515 if e := recover(); e != nil { 516 options.panicCallback(e) 517 } 518 }() 519 } 520 if r != nil { 521 r(t) 522 } 523 if r1 != nil { 524 r1(t) 525 } 526 } 527 } 528 } 529 { 530 h1 := t.OnSessionQueryStreamRead 531 h2 := x.OnSessionQueryStreamRead 532 ret.OnSessionQueryStreamRead = func(t TableSessionQueryStreamReadStartInfo) func(TableSessionQueryStreamReadDoneInfo) { 533 if options.panicCallback != nil { 534 defer func() { 535 if e := recover(); e != nil { 536 options.panicCallback(e) 537 } 538 }() 539 } 540 var r, r1 func(TableSessionQueryStreamReadDoneInfo) 541 if h1 != nil { 542 r = h1(t) 543 } 544 if h2 != nil { 545 r1 = h2(t) 546 } 547 return func(t TableSessionQueryStreamReadDoneInfo) { 548 if options.panicCallback != nil { 549 defer func() { 550 if e := recover(); e != nil { 551 options.panicCallback(e) 552 } 553 }() 554 } 555 if r != nil { 556 r(t) 557 } 558 if r1 != nil { 559 r1(t) 560 } 561 } 562 } 563 } 564 { 565 h1 := t.OnTxBegin 566 h2 := x.OnTxBegin 567 ret.OnTxBegin = func(t TableTxBeginStartInfo) func(TableTxBeginDoneInfo) { 568 if options.panicCallback != nil { 569 defer func() { 570 if e := recover(); e != nil { 571 options.panicCallback(e) 572 } 573 }() 574 } 575 var r, r1 func(TableTxBeginDoneInfo) 576 if h1 != nil { 577 r = h1(t) 578 } 579 if h2 != nil { 580 r1 = h2(t) 581 } 582 return func(t TableTxBeginDoneInfo) { 583 if options.panicCallback != nil { 584 defer func() { 585 if e := recover(); e != nil { 586 options.panicCallback(e) 587 } 588 }() 589 } 590 if r != nil { 591 r(t) 592 } 593 if r1 != nil { 594 r1(t) 595 } 596 } 597 } 598 } 599 { 600 h1 := t.OnTxExecute 601 h2 := x.OnTxExecute 602 ret.OnTxExecute = func(t TableTransactionExecuteStartInfo) func(TableTransactionExecuteDoneInfo) { 603 if options.panicCallback != nil { 604 defer func() { 605 if e := recover(); e != nil { 606 options.panicCallback(e) 607 } 608 }() 609 } 610 var r, r1 func(TableTransactionExecuteDoneInfo) 611 if h1 != nil { 612 r = h1(t) 613 } 614 if h2 != nil { 615 r1 = h2(t) 616 } 617 return func(t TableTransactionExecuteDoneInfo) { 618 if options.panicCallback != nil { 619 defer func() { 620 if e := recover(); e != nil { 621 options.panicCallback(e) 622 } 623 }() 624 } 625 if r != nil { 626 r(t) 627 } 628 if r1 != nil { 629 r1(t) 630 } 631 } 632 } 633 } 634 { 635 h1 := t.OnTxExecuteStatement 636 h2 := x.OnTxExecuteStatement 637 ret.OnTxExecuteStatement = func(t TableTransactionExecuteStatementStartInfo) func(TableTransactionExecuteStatementDoneInfo) { 638 if options.panicCallback != nil { 639 defer func() { 640 if e := recover(); e != nil { 641 options.panicCallback(e) 642 } 643 }() 644 } 645 var r, r1 func(TableTransactionExecuteStatementDoneInfo) 646 if h1 != nil { 647 r = h1(t) 648 } 649 if h2 != nil { 650 r1 = h2(t) 651 } 652 return func(t TableTransactionExecuteStatementDoneInfo) { 653 if options.panicCallback != nil { 654 defer func() { 655 if e := recover(); e != nil { 656 options.panicCallback(e) 657 } 658 }() 659 } 660 if r != nil { 661 r(t) 662 } 663 if r1 != nil { 664 r1(t) 665 } 666 } 667 } 668 } 669 { 670 h1 := t.OnTxCommit 671 h2 := x.OnTxCommit 672 ret.OnTxCommit = func(t TableTxCommitStartInfo) func(TableTxCommitDoneInfo) { 673 if options.panicCallback != nil { 674 defer func() { 675 if e := recover(); e != nil { 676 options.panicCallback(e) 677 } 678 }() 679 } 680 var r, r1 func(TableTxCommitDoneInfo) 681 if h1 != nil { 682 r = h1(t) 683 } 684 if h2 != nil { 685 r1 = h2(t) 686 } 687 return func(t TableTxCommitDoneInfo) { 688 if options.panicCallback != nil { 689 defer func() { 690 if e := recover(); e != nil { 691 options.panicCallback(e) 692 } 693 }() 694 } 695 if r != nil { 696 r(t) 697 } 698 if r1 != nil { 699 r1(t) 700 } 701 } 702 } 703 } 704 { 705 h1 := t.OnTxRollback 706 h2 := x.OnTxRollback 707 ret.OnTxRollback = func(t TableTxRollbackStartInfo) func(TableTxRollbackDoneInfo) { 708 if options.panicCallback != nil { 709 defer func() { 710 if e := recover(); e != nil { 711 options.panicCallback(e) 712 } 713 }() 714 } 715 var r, r1 func(TableTxRollbackDoneInfo) 716 if h1 != nil { 717 r = h1(t) 718 } 719 if h2 != nil { 720 r1 = h2(t) 721 } 722 return func(t TableTxRollbackDoneInfo) { 723 if options.panicCallback != nil { 724 defer func() { 725 if e := recover(); e != nil { 726 options.panicCallback(e) 727 } 728 }() 729 } 730 if r != nil { 731 r(t) 732 } 733 if r1 != nil { 734 r1(t) 735 } 736 } 737 } 738 } 739 { 740 h1 := t.OnPoolPut 741 h2 := x.OnPoolPut 742 ret.OnPoolPut = func(t TablePoolPutStartInfo) func(TablePoolPutDoneInfo) { 743 if options.panicCallback != nil { 744 defer func() { 745 if e := recover(); e != nil { 746 options.panicCallback(e) 747 } 748 }() 749 } 750 var r, r1 func(TablePoolPutDoneInfo) 751 if h1 != nil { 752 r = h1(t) 753 } 754 if h2 != nil { 755 r1 = h2(t) 756 } 757 return func(t TablePoolPutDoneInfo) { 758 if options.panicCallback != nil { 759 defer func() { 760 if e := recover(); e != nil { 761 options.panicCallback(e) 762 } 763 }() 764 } 765 if r != nil { 766 r(t) 767 } 768 if r1 != nil { 769 r1(t) 770 } 771 } 772 } 773 } 774 { 775 h1 := t.OnPoolGet 776 h2 := x.OnPoolGet 777 ret.OnPoolGet = func(t TablePoolGetStartInfo) func(TablePoolGetDoneInfo) { 778 if options.panicCallback != nil { 779 defer func() { 780 if e := recover(); e != nil { 781 options.panicCallback(e) 782 } 783 }() 784 } 785 var r, r1 func(TablePoolGetDoneInfo) 786 if h1 != nil { 787 r = h1(t) 788 } 789 if h2 != nil { 790 r1 = h2(t) 791 } 792 return func(t TablePoolGetDoneInfo) { 793 if options.panicCallback != nil { 794 defer func() { 795 if e := recover(); e != nil { 796 options.panicCallback(e) 797 } 798 }() 799 } 800 if r != nil { 801 r(t) 802 } 803 if r1 != nil { 804 r1(t) 805 } 806 } 807 } 808 } 809 { 810 h1 := t.OnPoolWith 811 h2 := x.OnPoolWith 812 ret.OnPoolWith = func(t TablePoolWithStartInfo) func(TablePoolWithDoneInfo) { 813 if options.panicCallback != nil { 814 defer func() { 815 if e := recover(); e != nil { 816 options.panicCallback(e) 817 } 818 }() 819 } 820 var r, r1 func(TablePoolWithDoneInfo) 821 if h1 != nil { 822 r = h1(t) 823 } 824 if h2 != nil { 825 r1 = h2(t) 826 } 827 return func(t TablePoolWithDoneInfo) { 828 if options.panicCallback != nil { 829 defer func() { 830 if e := recover(); e != nil { 831 options.panicCallback(e) 832 } 833 }() 834 } 835 if r != nil { 836 r(t) 837 } 838 if r1 != nil { 839 r1(t) 840 } 841 } 842 } 843 } 844 { 845 h1 := t.OnPoolStateChange 846 h2 := x.OnPoolStateChange 847 ret.OnPoolStateChange = func(t TablePoolStateChangeInfo) { 848 if options.panicCallback != nil { 849 defer func() { 850 if e := recover(); e != nil { 851 options.panicCallback(e) 852 } 853 }() 854 } 855 if h1 != nil { 856 h1(t) 857 } 858 if h2 != nil { 859 h2(t) 860 } 861 } 862 } 863 { 864 h1 := t.OnPoolSessionAdd 865 h2 := x.OnPoolSessionAdd 866 ret.OnPoolSessionAdd = func(info TablePoolSessionAddInfo) { 867 if options.panicCallback != nil { 868 defer func() { 869 if e := recover(); e != nil { 870 options.panicCallback(e) 871 } 872 }() 873 } 874 if h1 != nil { 875 h1(info) 876 } 877 if h2 != nil { 878 h2(info) 879 } 880 } 881 } 882 { 883 h1 := t.OnPoolSessionRemove 884 h2 := x.OnPoolSessionRemove 885 ret.OnPoolSessionRemove = func(info TablePoolSessionRemoveInfo) { 886 if options.panicCallback != nil { 887 defer func() { 888 if e := recover(); e != nil { 889 options.panicCallback(e) 890 } 891 }() 892 } 893 if h1 != nil { 894 h1(info) 895 } 896 if h2 != nil { 897 h2(info) 898 } 899 } 900 } 901 { 902 h1 := t.OnPoolWait 903 h2 := x.OnPoolWait 904 ret.OnPoolWait = func(t TablePoolWaitStartInfo) func(TablePoolWaitDoneInfo) { 905 if options.panicCallback != nil { 906 defer func() { 907 if e := recover(); e != nil { 908 options.panicCallback(e) 909 } 910 }() 911 } 912 var r, r1 func(TablePoolWaitDoneInfo) 913 if h1 != nil { 914 r = h1(t) 915 } 916 if h2 != nil { 917 r1 = h2(t) 918 } 919 return func(t TablePoolWaitDoneInfo) { 920 if options.panicCallback != nil { 921 defer func() { 922 if e := recover(); e != nil { 923 options.panicCallback(e) 924 } 925 }() 926 } 927 if r != nil { 928 r(t) 929 } 930 if r1 != nil { 931 r1(t) 932 } 933 } 934 } 935 } 936 return &ret 937 } 938 func (t *Table) onInit(t1 TableInitStartInfo) func(TableInitDoneInfo) { 939 fn := t.OnInit 940 if fn == nil { 941 return func(TableInitDoneInfo) { 942 return 943 } 944 } 945 res := fn(t1) 946 if res == nil { 947 return func(TableInitDoneInfo) { 948 return 949 } 950 } 951 return res 952 } 953 func (t *Table) onClose(t1 TableCloseStartInfo) func(TableCloseDoneInfo) { 954 fn := t.OnClose 955 if fn == nil { 956 return func(TableCloseDoneInfo) { 957 return 958 } 959 } 960 res := fn(t1) 961 if res == nil { 962 return func(TableCloseDoneInfo) { 963 return 964 } 965 } 966 return res 967 } 968 func (t *Table) onDo(t1 TableDoStartInfo) func(TableDoDoneInfo) { 969 fn := t.OnDo 970 if fn == nil { 971 return func(TableDoDoneInfo) { 972 return 973 } 974 } 975 res := fn(t1) 976 if res == nil { 977 return func(TableDoDoneInfo) { 978 return 979 } 980 } 981 return res 982 } 983 func (t *Table) onDoTx(t1 TableDoTxStartInfo) func(TableDoTxDoneInfo) { 984 fn := t.OnDoTx 985 if fn == nil { 986 return func(TableDoTxDoneInfo) { 987 return 988 } 989 } 990 res := fn(t1) 991 if res == nil { 992 return func(TableDoTxDoneInfo) { 993 return 994 } 995 } 996 return res 997 } 998 func (t *Table) onBulkUpsert(t1 TableBulkUpsertStartInfo) func(TableBulkUpsertDoneInfo) { 999 fn := t.OnBulkUpsert 1000 if fn == nil { 1001 return func(TableBulkUpsertDoneInfo) { 1002 return 1003 } 1004 } 1005 res := fn(t1) 1006 if res == nil { 1007 return func(TableBulkUpsertDoneInfo) { 1008 return 1009 } 1010 } 1011 return res 1012 } 1013 func (t *Table) onCreateSession(t1 TableCreateSessionStartInfo) func(TableCreateSessionDoneInfo) { 1014 fn := t.OnCreateSession 1015 if fn == nil { 1016 return func(TableCreateSessionDoneInfo) { 1017 return 1018 } 1019 } 1020 res := fn(t1) 1021 if res == nil { 1022 return func(TableCreateSessionDoneInfo) { 1023 return 1024 } 1025 } 1026 return res 1027 } 1028 func (t *Table) onSessionNew(t1 TableSessionNewStartInfo) func(TableSessionNewDoneInfo) { 1029 fn := t.OnSessionNew 1030 if fn == nil { 1031 return func(TableSessionNewDoneInfo) { 1032 return 1033 } 1034 } 1035 res := fn(t1) 1036 if res == nil { 1037 return func(TableSessionNewDoneInfo) { 1038 return 1039 } 1040 } 1041 return res 1042 } 1043 func (t *Table) onSessionDelete(t1 TableSessionDeleteStartInfo) func(TableSessionDeleteDoneInfo) { 1044 fn := t.OnSessionDelete 1045 if fn == nil { 1046 return func(TableSessionDeleteDoneInfo) { 1047 return 1048 } 1049 } 1050 res := fn(t1) 1051 if res == nil { 1052 return func(TableSessionDeleteDoneInfo) { 1053 return 1054 } 1055 } 1056 return res 1057 } 1058 func (t *Table) onSessionKeepAlive(t1 TableKeepAliveStartInfo) func(TableKeepAliveDoneInfo) { 1059 fn := t.OnSessionKeepAlive 1060 if fn == nil { 1061 return func(TableKeepAliveDoneInfo) { 1062 return 1063 } 1064 } 1065 res := fn(t1) 1066 if res == nil { 1067 return func(TableKeepAliveDoneInfo) { 1068 return 1069 } 1070 } 1071 return res 1072 } 1073 func (t *Table) onSessionBulkUpsert(t1 TableSessionBulkUpsertStartInfo) func(TableSessionBulkUpsertDoneInfo) { 1074 fn := t.OnSessionBulkUpsert 1075 if fn == nil { 1076 return func(TableSessionBulkUpsertDoneInfo) { 1077 return 1078 } 1079 } 1080 res := fn(t1) 1081 if res == nil { 1082 return func(TableSessionBulkUpsertDoneInfo) { 1083 return 1084 } 1085 } 1086 return res 1087 } 1088 func (t *Table) onSessionQueryPrepare(t1 TablePrepareDataQueryStartInfo) func(TablePrepareDataQueryDoneInfo) { 1089 fn := t.OnSessionQueryPrepare 1090 if fn == nil { 1091 return func(TablePrepareDataQueryDoneInfo) { 1092 return 1093 } 1094 } 1095 res := fn(t1) 1096 if res == nil { 1097 return func(TablePrepareDataQueryDoneInfo) { 1098 return 1099 } 1100 } 1101 return res 1102 } 1103 func (t *Table) onSessionQueryExecute(t1 TableExecuteDataQueryStartInfo) func(TableExecuteDataQueryDoneInfo) { 1104 fn := t.OnSessionQueryExecute 1105 if fn == nil { 1106 return func(TableExecuteDataQueryDoneInfo) { 1107 return 1108 } 1109 } 1110 res := fn(t1) 1111 if res == nil { 1112 return func(TableExecuteDataQueryDoneInfo) { 1113 return 1114 } 1115 } 1116 return res 1117 } 1118 func (t *Table) onSessionQueryExplain(t1 TableExplainQueryStartInfo) func(TableExplainQueryDoneInfo) { 1119 fn := t.OnSessionQueryExplain 1120 if fn == nil { 1121 return func(TableExplainQueryDoneInfo) { 1122 return 1123 } 1124 } 1125 res := fn(t1) 1126 if res == nil { 1127 return func(TableExplainQueryDoneInfo) { 1128 return 1129 } 1130 } 1131 return res 1132 } 1133 func (t *Table) onSessionQueryStreamExecute(t1 TableSessionQueryStreamExecuteStartInfo) func(TableSessionQueryStreamExecuteDoneInfo) { 1134 fn := t.OnSessionQueryStreamExecute 1135 if fn == nil { 1136 return func(TableSessionQueryStreamExecuteDoneInfo) { 1137 return 1138 } 1139 } 1140 res := fn(t1) 1141 if res == nil { 1142 return func(TableSessionQueryStreamExecuteDoneInfo) { 1143 return 1144 } 1145 } 1146 return res 1147 } 1148 func (t *Table) onSessionQueryStreamRead(t1 TableSessionQueryStreamReadStartInfo) func(TableSessionQueryStreamReadDoneInfo) { 1149 fn := t.OnSessionQueryStreamRead 1150 if fn == nil { 1151 return func(TableSessionQueryStreamReadDoneInfo) { 1152 return 1153 } 1154 } 1155 res := fn(t1) 1156 if res == nil { 1157 return func(TableSessionQueryStreamReadDoneInfo) { 1158 return 1159 } 1160 } 1161 return res 1162 } 1163 func (t *Table) onTxBegin(t1 TableTxBeginStartInfo) func(TableTxBeginDoneInfo) { 1164 fn := t.OnTxBegin 1165 if fn == nil { 1166 return func(TableTxBeginDoneInfo) { 1167 return 1168 } 1169 } 1170 res := fn(t1) 1171 if res == nil { 1172 return func(TableTxBeginDoneInfo) { 1173 return 1174 } 1175 } 1176 return res 1177 } 1178 func (t *Table) onTxExecute(t1 TableTransactionExecuteStartInfo) func(TableTransactionExecuteDoneInfo) { 1179 fn := t.OnTxExecute 1180 if fn == nil { 1181 return func(TableTransactionExecuteDoneInfo) { 1182 return 1183 } 1184 } 1185 res := fn(t1) 1186 if res == nil { 1187 return func(TableTransactionExecuteDoneInfo) { 1188 return 1189 } 1190 } 1191 return res 1192 } 1193 func (t *Table) onTxExecuteStatement(t1 TableTransactionExecuteStatementStartInfo) func(TableTransactionExecuteStatementDoneInfo) { 1194 fn := t.OnTxExecuteStatement 1195 if fn == nil { 1196 return func(TableTransactionExecuteStatementDoneInfo) { 1197 return 1198 } 1199 } 1200 res := fn(t1) 1201 if res == nil { 1202 return func(TableTransactionExecuteStatementDoneInfo) { 1203 return 1204 } 1205 } 1206 return res 1207 } 1208 func (t *Table) onTxCommit(t1 TableTxCommitStartInfo) func(TableTxCommitDoneInfo) { 1209 fn := t.OnTxCommit 1210 if fn == nil { 1211 return func(TableTxCommitDoneInfo) { 1212 return 1213 } 1214 } 1215 res := fn(t1) 1216 if res == nil { 1217 return func(TableTxCommitDoneInfo) { 1218 return 1219 } 1220 } 1221 return res 1222 } 1223 func (t *Table) onTxRollback(t1 TableTxRollbackStartInfo) func(TableTxRollbackDoneInfo) { 1224 fn := t.OnTxRollback 1225 if fn == nil { 1226 return func(TableTxRollbackDoneInfo) { 1227 return 1228 } 1229 } 1230 res := fn(t1) 1231 if res == nil { 1232 return func(TableTxRollbackDoneInfo) { 1233 return 1234 } 1235 } 1236 return res 1237 } 1238 func (t *Table) onPoolPut(t1 TablePoolPutStartInfo) func(TablePoolPutDoneInfo) { 1239 fn := t.OnPoolPut 1240 if fn == nil { 1241 return func(TablePoolPutDoneInfo) { 1242 return 1243 } 1244 } 1245 res := fn(t1) 1246 if res == nil { 1247 return func(TablePoolPutDoneInfo) { 1248 return 1249 } 1250 } 1251 return res 1252 } 1253 func (t *Table) onPoolGet(t1 TablePoolGetStartInfo) func(TablePoolGetDoneInfo) { 1254 fn := t.OnPoolGet 1255 if fn == nil { 1256 return func(TablePoolGetDoneInfo) { 1257 return 1258 } 1259 } 1260 res := fn(t1) 1261 if res == nil { 1262 return func(TablePoolGetDoneInfo) { 1263 return 1264 } 1265 } 1266 return res 1267 } 1268 func (t *Table) onPoolWith(t1 TablePoolWithStartInfo) func(TablePoolWithDoneInfo) { 1269 fn := t.OnPoolWith 1270 if fn == nil { 1271 return func(TablePoolWithDoneInfo) { 1272 return 1273 } 1274 } 1275 res := fn(t1) 1276 if res == nil { 1277 return func(TablePoolWithDoneInfo) { 1278 return 1279 } 1280 } 1281 return res 1282 } 1283 func (t *Table) onPoolStateChange(t1 TablePoolStateChangeInfo) { 1284 fn := t.OnPoolStateChange 1285 if fn == nil { 1286 return 1287 } 1288 fn(t1) 1289 } 1290 func (t *Table) onPoolSessionAdd(info TablePoolSessionAddInfo) { 1291 fn := t.OnPoolSessionAdd 1292 if fn == nil { 1293 return 1294 } 1295 fn(info) 1296 } 1297 func (t *Table) onPoolSessionRemove(info TablePoolSessionRemoveInfo) { 1298 fn := t.OnPoolSessionRemove 1299 if fn == nil { 1300 return 1301 } 1302 fn(info) 1303 } 1304 func (t *Table) onPoolWait(t1 TablePoolWaitStartInfo) func(TablePoolWaitDoneInfo) { 1305 fn := t.OnPoolWait 1306 if fn == nil { 1307 return func(TablePoolWaitDoneInfo) { 1308 return 1309 } 1310 } 1311 res := fn(t1) 1312 if res == nil { 1313 return func(TablePoolWaitDoneInfo) { 1314 return 1315 } 1316 } 1317 return res 1318 } 1319 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1320 func TableOnInit(t *Table, c *context.Context, call call) func(limit int) { 1321 var p TableInitStartInfo 1322 p.Context = c 1323 p.Call = call 1324 res := t.onInit(p) 1325 return func(limit int) { 1326 var p TableInitDoneInfo 1327 p.Limit = limit 1328 res(p) 1329 } 1330 } 1331 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1332 func TableOnClose(t *Table, c *context.Context, call call) func(error) { 1333 var p TableCloseStartInfo 1334 p.Context = c 1335 p.Call = call 1336 res := t.onClose(p) 1337 return func(e error) { 1338 var p TableCloseDoneInfo 1339 p.Error = e 1340 res(p) 1341 } 1342 } 1343 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1344 func TableOnDo(t *Table, c *context.Context, call call, label string, idempotent bool, nestedCall bool) func(attempts int, _ error) { 1345 var p TableDoStartInfo 1346 p.Context = c 1347 p.Call = call 1348 p.Label = label 1349 p.Idempotent = idempotent 1350 p.NestedCall = nestedCall 1351 res := t.onDo(p) 1352 return func(attempts int, e error) { 1353 var p TableDoDoneInfo 1354 p.Attempts = attempts 1355 p.Error = e 1356 res(p) 1357 } 1358 } 1359 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1360 func TableOnDoTx(t *Table, c *context.Context, call call, label string, idempotent bool, nestedCall bool) func(attempts int, _ error) { 1361 var p TableDoTxStartInfo 1362 p.Context = c 1363 p.Call = call 1364 p.Label = label 1365 p.Idempotent = idempotent 1366 p.NestedCall = nestedCall 1367 res := t.onDoTx(p) 1368 return func(attempts int, e error) { 1369 var p TableDoTxDoneInfo 1370 p.Attempts = attempts 1371 p.Error = e 1372 res(p) 1373 } 1374 } 1375 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1376 func TableOnBulkUpsert(t *Table, c *context.Context, call call) func(_ error, attempts int) { 1377 var p TableBulkUpsertStartInfo 1378 p.Context = c 1379 p.Call = call 1380 res := t.onBulkUpsert(p) 1381 return func(e error, attempts int) { 1382 var p TableBulkUpsertDoneInfo 1383 p.Error = e 1384 p.Attempts = attempts 1385 res(p) 1386 } 1387 } 1388 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1389 func TableOnCreateSession(t *Table, c *context.Context, call call) func(session sessionInfo, attempts int, _ error) { 1390 var p TableCreateSessionStartInfo 1391 p.Context = c 1392 p.Call = call 1393 res := t.onCreateSession(p) 1394 return func(session sessionInfo, attempts int, e error) { 1395 var p TableCreateSessionDoneInfo 1396 p.Session = session 1397 p.Attempts = attempts 1398 p.Error = e 1399 res(p) 1400 } 1401 } 1402 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1403 func TableOnSessionNew(t *Table, c *context.Context, call call) func(session sessionInfo, _ error) { 1404 var p TableSessionNewStartInfo 1405 p.Context = c 1406 p.Call = call 1407 res := t.onSessionNew(p) 1408 return func(session sessionInfo, e error) { 1409 var p TableSessionNewDoneInfo 1410 p.Session = session 1411 p.Error = e 1412 res(p) 1413 } 1414 } 1415 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1416 func TableOnSessionDelete(t *Table, c *context.Context, call call, session sessionInfo) func(error) { 1417 var p TableSessionDeleteStartInfo 1418 p.Context = c 1419 p.Call = call 1420 p.Session = session 1421 res := t.onSessionDelete(p) 1422 return func(e error) { 1423 var p TableSessionDeleteDoneInfo 1424 p.Error = e 1425 res(p) 1426 } 1427 } 1428 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1429 func TableOnSessionKeepAlive(t *Table, c *context.Context, call call, session sessionInfo) func(error) { 1430 var p TableKeepAliveStartInfo 1431 p.Context = c 1432 p.Call = call 1433 p.Session = session 1434 res := t.onSessionKeepAlive(p) 1435 return func(e error) { 1436 var p TableKeepAliveDoneInfo 1437 p.Error = e 1438 res(p) 1439 } 1440 } 1441 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1442 func TableOnSessionBulkUpsert(t *Table, c *context.Context, call call, session sessionInfo) func(error) { 1443 var p TableSessionBulkUpsertStartInfo 1444 p.Context = c 1445 p.Call = call 1446 p.Session = session 1447 res := t.onSessionBulkUpsert(p) 1448 return func(e error) { 1449 var p TableSessionBulkUpsertDoneInfo 1450 p.Error = e 1451 res(p) 1452 } 1453 } 1454 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1455 func TableOnSessionQueryPrepare(t *Table, c *context.Context, call call, session sessionInfo, query string) func(result tableDataQuery, _ error) { 1456 var p TablePrepareDataQueryStartInfo 1457 p.Context = c 1458 p.Call = call 1459 p.Session = session 1460 p.Query = query 1461 res := t.onSessionQueryPrepare(p) 1462 return func(result tableDataQuery, e error) { 1463 var p TablePrepareDataQueryDoneInfo 1464 p.Result = result 1465 p.Error = e 1466 res(p) 1467 } 1468 } 1469 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1470 func TableOnSessionQueryExecute(t *Table, c *context.Context, call call, session sessionInfo, query tableDataQuery, parameters tableQueryParameters, keepInCache bool) func(tx txInfo, prepared bool, result tableResult, _ error) { 1471 var p TableExecuteDataQueryStartInfo 1472 p.Context = c 1473 p.Call = call 1474 p.Session = session 1475 p.Query = query 1476 p.Parameters = parameters 1477 p.KeepInCache = keepInCache 1478 res := t.onSessionQueryExecute(p) 1479 return func(tx txInfo, prepared bool, result tableResult, e error) { 1480 var p TableExecuteDataQueryDoneInfo 1481 p.Tx = tx 1482 p.Prepared = prepared 1483 p.Result = result 1484 p.Error = e 1485 res(p) 1486 } 1487 } 1488 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1489 func TableOnSessionQueryExplain(t *Table, c *context.Context, call call, session sessionInfo, query string) func(aST string, plan string, _ error) { 1490 var p TableExplainQueryStartInfo 1491 p.Context = c 1492 p.Call = call 1493 p.Session = session 1494 p.Query = query 1495 res := t.onSessionQueryExplain(p) 1496 return func(aST string, plan string, e error) { 1497 var p TableExplainQueryDoneInfo 1498 p.AST = aST 1499 p.Plan = plan 1500 p.Error = e 1501 res(p) 1502 } 1503 } 1504 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1505 func TableOnSessionQueryStreamExecute(t *Table, c *context.Context, call call, session sessionInfo, query tableDataQuery, parameters tableQueryParameters) func(error) { 1506 var p TableSessionQueryStreamExecuteStartInfo 1507 p.Context = c 1508 p.Call = call 1509 p.Session = session 1510 p.Query = query 1511 p.Parameters = parameters 1512 res := t.onSessionQueryStreamExecute(p) 1513 return func(e error) { 1514 var p TableSessionQueryStreamExecuteDoneInfo 1515 p.Error = e 1516 res(p) 1517 } 1518 } 1519 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1520 func TableOnSessionQueryStreamRead(t *Table, c *context.Context, call call, session sessionInfo) func(error) { 1521 var p TableSessionQueryStreamReadStartInfo 1522 p.Context = c 1523 p.Call = call 1524 p.Session = session 1525 res := t.onSessionQueryStreamRead(p) 1526 return func(e error) { 1527 var p TableSessionQueryStreamReadDoneInfo 1528 p.Error = e 1529 res(p) 1530 } 1531 } 1532 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1533 func TableOnTxBegin(t *Table, c *context.Context, call call, session sessionInfo) func(tx txInfo, _ error) { 1534 var p TableTxBeginStartInfo 1535 p.Context = c 1536 p.Call = call 1537 p.Session = session 1538 res := t.onTxBegin(p) 1539 return func(tx txInfo, e error) { 1540 var p TableTxBeginDoneInfo 1541 p.Tx = tx 1542 p.Error = e 1543 res(p) 1544 } 1545 } 1546 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1547 func TableOnTxExecute(t *Table, c *context.Context, call call, session sessionInfo, tx txInfo, query tableDataQuery, parameters tableQueryParameters) func(result tableResult, _ error) { 1548 var p TableTransactionExecuteStartInfo 1549 p.Context = c 1550 p.Call = call 1551 p.Session = session 1552 p.Tx = tx 1553 p.Query = query 1554 p.Parameters = parameters 1555 res := t.onTxExecute(p) 1556 return func(result tableResult, e error) { 1557 var p TableTransactionExecuteDoneInfo 1558 p.Result = result 1559 p.Error = e 1560 res(p) 1561 } 1562 } 1563 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1564 func TableOnTxExecuteStatement(t *Table, c *context.Context, call call, session sessionInfo, tx txInfo, statementQuery tableDataQuery, parameters tableQueryParameters) func(result tableResult, _ error) { 1565 var p TableTransactionExecuteStatementStartInfo 1566 p.Context = c 1567 p.Call = call 1568 p.Session = session 1569 p.Tx = tx 1570 p.StatementQuery = statementQuery 1571 p.Parameters = parameters 1572 res := t.onTxExecuteStatement(p) 1573 return func(result tableResult, e error) { 1574 var p TableTransactionExecuteStatementDoneInfo 1575 p.Result = result 1576 p.Error = e 1577 res(p) 1578 } 1579 } 1580 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1581 func TableOnTxCommit(t *Table, c *context.Context, call call, session sessionInfo, tx txInfo) func(error) { 1582 var p TableTxCommitStartInfo 1583 p.Context = c 1584 p.Call = call 1585 p.Session = session 1586 p.Tx = tx 1587 res := t.onTxCommit(p) 1588 return func(e error) { 1589 var p TableTxCommitDoneInfo 1590 p.Error = e 1591 res(p) 1592 } 1593 } 1594 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1595 func TableOnTxRollback(t *Table, c *context.Context, call call, session sessionInfo, tx txInfo) func(error) { 1596 var p TableTxRollbackStartInfo 1597 p.Context = c 1598 p.Call = call 1599 p.Session = session 1600 p.Tx = tx 1601 res := t.onTxRollback(p) 1602 return func(e error) { 1603 var p TableTxRollbackDoneInfo 1604 p.Error = e 1605 res(p) 1606 } 1607 } 1608 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1609 func TableOnPoolPut(t *Table, c *context.Context, call call, session sessionInfo) func(error) { 1610 var p TablePoolPutStartInfo 1611 p.Context = c 1612 p.Call = call 1613 p.Session = session 1614 res := t.onPoolPut(p) 1615 return func(e error) { 1616 var p TablePoolPutDoneInfo 1617 p.Error = e 1618 res(p) 1619 } 1620 } 1621 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1622 func TableOnPoolGet(t *Table, c *context.Context, call call) func(session sessionInfo, attempts int, _ error) { 1623 var p TablePoolGetStartInfo 1624 p.Context = c 1625 p.Call = call 1626 res := t.onPoolGet(p) 1627 return func(session sessionInfo, attempts int, e error) { 1628 var p TablePoolGetDoneInfo 1629 p.Session = session 1630 p.Attempts = attempts 1631 p.Error = e 1632 res(p) 1633 } 1634 } 1635 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1636 func TableOnPoolWith(t *Table, c *context.Context, call call) func(attempts int, _ error) { 1637 var p TablePoolWithStartInfo 1638 p.Context = c 1639 p.Call = call 1640 res := t.onPoolWith(p) 1641 return func(attempts int, e error) { 1642 var p TablePoolWithDoneInfo 1643 p.Attempts = attempts 1644 p.Error = e 1645 res(p) 1646 } 1647 } 1648 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1649 func TableOnPoolStateChange(t *Table, limit int, index int, idle int, wait int, createInProgress int, size int) { 1650 var p TablePoolStateChangeInfo 1651 p.Limit = limit 1652 p.Index = index 1653 p.Idle = idle 1654 p.Wait = wait 1655 p.CreateInProgress = createInProgress 1656 p.Size = size 1657 t.onPoolStateChange(p) 1658 } 1659 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1660 func TableOnPoolSessionAdd(t *Table, session sessionInfo) { 1661 var p TablePoolSessionAddInfo 1662 p.Session = session 1663 t.onPoolSessionAdd(p) 1664 } 1665 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1666 func TableOnPoolSessionRemove(t *Table, session sessionInfo) { 1667 var p TablePoolSessionRemoveInfo 1668 p.Session = session 1669 t.onPoolSessionRemove(p) 1670 } 1671 // Internals: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#internals 1672 func TableOnPoolWait(t *Table, c *context.Context, call call) func(session sessionInfo, _ error) { 1673 var p TablePoolWaitStartInfo 1674 p.Context = c 1675 p.Call = call 1676 res := t.onPoolWait(p) 1677 return func(session sessionInfo, e error) { 1678 var p TablePoolWaitDoneInfo 1679 p.Session = session 1680 p.Error = e 1681 res(p) 1682 } 1683 }