transactd 3.4.1 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/CMakeLists.txt +2 -2
  3. data/bin/common/tdclc_32_3_5.dll +0 -0
  4. data/bin/common/tdclc_64_3_5.dll +0 -0
  5. data/build/common/options.cmake +12 -0
  6. data/build/common/transactd_cl_common.cmake +1 -0
  7. data/build/common/transactd_required.cmake +5 -0
  8. data/build/swig/ruby/tdclrb_wrap.cpp +1029 -130
  9. data/build/swig/tdcl.i +60 -5
  10. data/build/tdclc/CMakeLists.txt +30 -32
  11. data/build/tdclc/libtdclcm.map +1 -1
  12. data/build/tdclc/tdclc.cbproj +1 -1
  13. data/build/tdclc/tdclc.rc +4 -4
  14. data/build/tdclcpp/CMakeLists.txt +39 -48
  15. data/build/tdclcpp/tdclcpp.rc +4 -4
  16. data/build/tdclcpp/tdclcpp_bc.cbproj +4 -1
  17. data/build/tdclrb/CMakeLists.txt +5 -4
  18. data/build/tdclrb/tdclrb.rc +4 -4
  19. data/source/bzs/db/engine/mysql/database.cpp +45 -35
  20. data/source/bzs/db/engine/mysql/database.h +6 -8
  21. data/source/bzs/db/engine/mysql/dbManager.cpp +11 -0
  22. data/source/bzs/db/engine/mysql/dbManager.h +1 -0
  23. data/source/bzs/db/engine/mysql/ha.cpp +174 -0
  24. data/source/bzs/db/engine/mysql/ha.h +50 -0
  25. data/source/bzs/db/engine/mysql/mysqlInternal.h +18 -1
  26. data/source/bzs/db/engine/mysql/mysqlProtocol.cpp +222 -9
  27. data/source/bzs/db/engine/mysql/mysqlProtocol.h +5 -0
  28. data/source/bzs/db/protocol/tdap/client/client.cpp +23 -9
  29. data/source/bzs/db/protocol/tdap/client/client.h +125 -94
  30. data/source/bzs/db/protocol/tdap/client/connMgr.cpp +139 -30
  31. data/source/bzs/db/protocol/tdap/client/connMgr.h +40 -8
  32. data/source/bzs/db/protocol/tdap/client/database.cpp +17 -17
  33. data/source/bzs/db/protocol/tdap/client/database.h +15 -0
  34. data/source/bzs/db/protocol/tdap/client/dllmain.cpp +10 -4
  35. data/source/bzs/db/protocol/tdap/client/haNameResolver.cpp +486 -0
  36. data/source/bzs/db/protocol/tdap/client/haNameResolver.h +74 -0
  37. data/source/bzs/db/protocol/tdap/client/nsDatabase.cpp +102 -71
  38. data/source/bzs/db/protocol/tdap/client/nsDatabase.h +15 -3
  39. data/source/bzs/db/protocol/tdap/client/nsTable.cpp +2 -5
  40. data/source/bzs/db/protocol/tdap/client/nsTable.h +2 -1
  41. data/source/bzs/db/protocol/tdap/client/sqlBuilder.cpp +2 -2
  42. data/source/bzs/db/protocol/tdap/client/table.cpp +1 -2
  43. data/source/bzs/db/protocol/tdap/client/trdboostapi.h +13 -0
  44. data/source/bzs/db/protocol/tdap/client/trnsctcl.def +1 -0
  45. data/source/bzs/db/protocol/tdap/mysql/databaseSchema.cpp +9 -7
  46. data/source/bzs/db/protocol/tdap/mysql/recordsetReader.h +2 -2
  47. data/source/bzs/db/protocol/tdap/mysql/tdapCommandExecuter.cpp +328 -117
  48. data/source/bzs/db/protocol/tdap/mysql/tdapCommandExecuter.h +7 -8
  49. data/source/bzs/db/protocol/tdap/tdapcapi.h +81 -41
  50. data/source/bzs/db/transactd/connManager.cpp +118 -93
  51. data/source/bzs/db/transactd/connManager.h +6 -1
  52. data/source/bzs/db/transactd/connectionRecord.h +27 -7
  53. data/source/bzs/db/transactd/transactd.cpp +24 -13
  54. data/source/bzs/env/crosscompile.h +2 -0
  55. data/source/bzs/netsvc/client/iconnection.h +2 -0
  56. data/source/bzs/netsvc/client/tcpClient.cpp +45 -14
  57. data/source/bzs/netsvc/client/tcpClient.h +21 -4
  58. data/source/bzs/netsvc/server/IAppModule.h +1 -0
  59. data/source/bzs/netsvc/server/serverCpt.cpp +1 -1
  60. data/source/bzs/netsvc/server/serverPipe.cpp +2 -0
  61. data/source/bzs/netsvc/server/serverTpool.cpp +3 -5
  62. data/source/bzs/test/tdclatl/test_v3.js +91 -3
  63. data/source/bzs/test/tdclphp/transactd_v3_Test.php +89 -3
  64. data/source/bzs/test/tdclrb/transactd_v3_spec.rb +69 -2
  65. data/source/bzs/test/trdclengn/testField.h +19 -1
  66. data/source/bzs/test/trdclengn/test_tdclcpp_ha.cpp +388 -0
  67. data/source/bzs/test/trdclengn/test_tdclcpp_v3.cpp +6 -1
  68. data/source/bzs/test/trdclengn/test_trdclengn.cpp +1 -0
  69. data/source/bzs/test/trdclengn/testbase.h +7 -1
  70. data/source/global/replication/haCommand.cpp +843 -0
  71. data/source/global/replication/haCommand.h +78 -0
  72. data/source/global/replication/haMgr.cpp +321 -0
  73. data/source/global/replication/replCommand.cpp +696 -0
  74. data/source/global/replication/replCommand.h +161 -0
  75. data/source/global/tdclatl/BinlogPos.cpp +10 -0
  76. data/source/global/tdclatl/BinlogPos.h +1 -0
  77. data/source/global/tdclatl/ConnMgr.cpp +89 -2
  78. data/source/global/tdclatl/ConnMgr.h +13 -1
  79. data/source/global/tdclatl/ConnRecord.cpp +8 -2
  80. data/source/global/tdclatl/ConnRecord.h +4 -3
  81. data/source/global/tdclatl/Database.cpp +13 -0
  82. data/source/global/tdclatl/Database.h +2 -0
  83. data/source/global/tdclatl/HaNameREsolver.cpp +54 -0
  84. data/source/global/tdclatl/HaNameREsolver.h +68 -0
  85. data/source/global/tdclatl/resource.h +0 -0
  86. data/source/global/tdclatl/tdclatl.idl +76 -5
  87. metadata +16 -6
  88. data/bin/common/tdclc_32_3_4.dll +0 -0
  89. data/bin/common/tdclc_64_3_4.dll +0 -0
  90. data/source/bzs/db/protocol/tdap/mysql/debuglog.cpp +0 -423
  91. data/source/bzs/db/protocol/tdap/mysql/debuglog.h +0 -116
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 832bd257248ab6aa2b05459c3408e5e6126dd8b1
4
- data.tar.gz: 98238e942923952e95a40700dbfa2b8f6ae1ec42
3
+ metadata.gz: 917078d5875c79cb79ec708368ea6322c6262a62
4
+ data.tar.gz: 3611693ef68ea8fda802a572740c30b2f010d4c9
5
5
  SHA512:
6
- metadata.gz: 9c093a7897ab87ce8771546215b944e3e0f92259b222a9f426a45825175328880d9db3fe7124223ab62916e1ca929437a3204a224eb4f8c23423c88ea0b7d35f
7
- data.tar.gz: e922e49e4e8986ad4d997fb6640f64c6428c2e6d6c591bd77de5fdb0e8d8ab43025c8508c267cec8e2ff2b8fe9827e135c2bcde0c43c24f8e24e03e867f0f6ec
6
+ metadata.gz: 8e5a25453a6860f22a28f958bf65f52e4e1047dcf18b7853987f373b4301c688c40e7aa642334d1c65f39a9debdce5efb0749c8f7c345820dee9f4d54db1c216
7
+ data.tar.gz: adba69c5f41ab8f23091abd69d63fb9662acb62805ba271346150c60c9737a1b03aba43fc2516768572c187960b5ca639f31b0c5a3234844eccfed9fb7547dd3
data/CMakeLists.txt CHANGED
@@ -30,7 +30,7 @@ include(build/common/options.cmake)
30
30
  # ==========================================================
31
31
  option(WITH_TRANSACTD_SERVER "Build Transactd server plugin" ON)
32
32
  option(WITH_TRANSACTD_CLIENTS "Build Transactd client libraries" ON)
33
- option(TRANSACTD_HANDLERSOCKET "Add HandlerSocket protocol to Transactd plugin" ON)
33
+ option(TRANSACTD_HANDLERSOCKET "Add HandlerSocket protocol to Transactd plugin" OFF)
34
34
  set(TRANSACTD_PREFIX "/usr/local/transactd" CACHE STRING "Prefix for transactd executables")
35
35
  set(TRANSACTD_CLIENTS_PREFIX "" CACHE STRING "Prefix for transactd client libraries")
36
36
  # options for Ruby client
@@ -105,7 +105,7 @@ if(WITH_TRANSACTD_CLIENTS)
105
105
  else()
106
106
  set(TDCL_CPP_CHARSET m)
107
107
  endif()
108
- foreach(srcname tdclcpp test_tdcl test_tdclcpp_v3 bench_td bench_query tdclstmt querystmts ormsrcgen)
108
+ foreach(srcname tdclcpp test_tdcl test_tdclcpp_v3 bench_td bench_query tdclstmt querystmts ormsrcgen haMgr test_tdclha)
109
109
  subdirs("build/${srcname}")
110
110
  endforeach()
111
111
  endif()
Binary file
Binary file
@@ -59,3 +59,15 @@ macro(bz_add_cxx_flag opt build_type)
59
59
  set(CMAKE_CXX_FLAGS${build_type} "${CMAKE_CXX_FLAGS${build_type}} ${opt}")
60
60
  endmacro()
61
61
  endif()
62
+
63
+
64
+ # ==========================================================
65
+ # set compiler to gcc instead of g++
66
+ # ==========================================================
67
+ if(NOT COMMAND bz_force_gcc)
68
+ macro(bz_force_gcc)
69
+ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
70
+ set(CMAKE_CXX_COMPILER "$ENV{CC}")
71
+ endif()
72
+ endmacro()
73
+ endif()
@@ -37,6 +37,7 @@ macro(tdcl_add_source_files TRANSACTD_ROOT)
37
37
  ${TRANSACTD_ROOT}/source/bzs/db/protocol/tdap/client/fieldNameAlias.cpp
38
38
  ${TRANSACTD_ROOT}/source/bzs/db/protocol/tdap/client/fileDDF.cpp
39
39
  ${TRANSACTD_ROOT}/source/bzs/db/protocol/tdap/client/groupQuery.cpp
40
+ ${TRANSACTD_ROOT}/source/bzs/db/protocol/tdap/client/haNameResolver.cpp
40
41
  ${TRANSACTD_ROOT}/source/bzs/db/protocol/tdap/client/indexDDF.cpp
41
42
  ${TRANSACTD_ROOT}/source/bzs/db/protocol/tdap/client/memRecord.cpp
42
43
  ${TRANSACTD_ROOT}/source/bzs/db/protocol/tdap/client/nsDatabase.cpp
@@ -26,3 +26,8 @@ if(WIN32)
26
26
  endif()
27
27
  include(CMakeParseArguments)
28
28
  endif()
29
+
30
+ # set policies
31
+ if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 3.0)
32
+ cmake_policy(SET CMP0054 NEW)
33
+ endif()
@@ -2080,6 +2080,7 @@ validatablePointerList g_vPtrList;
2080
2080
  #include <bzs/db/protocol/tdap/client/activeTable.h>
2081
2081
  #include <bzs/db/protocol/tdap/client/groupQuery.h>
2082
2082
  #include <bzs/db/protocol/tdap/client/pooledDatabaseManager.h>
2083
+ #include <bzs/db/protocol/tdap/client/haNameResolver.h>
2083
2084
 
2084
2085
  using namespace bzs::db::protocol::tdap;
2085
2086
  using namespace bzs::db::protocol::tdap::client;
@@ -2596,9 +2597,9 @@ SWIGINTERN bzs::db::protocol::tdap::client::connMgr::records const *bzs_db_proto
2596
2597
  *p = self->schemaTables(dbname);
2597
2598
  return p;
2598
2599
  }
2599
- SWIGINTERN bzs::db::protocol::tdap::client::connMgr::records const *bzs_db_protocol_tdap_client_connMgr_slaveStatus(bzs::db::protocol::tdap::client::connMgr *self){
2600
+ SWIGINTERN bzs::db::protocol::tdap::client::connMgr::records const *bzs_db_protocol_tdap_client_connMgr_slaveStatus(bzs::db::protocol::tdap::client::connMgr *self,char const *channel){
2600
2601
  bzs::db::protocol::tdap::client::connMgr::records* p = new bzs::db::protocol::tdap::client::connMgr::records();
2601
- *p = self->slaveStatus();
2602
+ *p = self->slaveStatus(channel);
2602
2603
  return p;
2603
2604
  }
2604
2605
  SWIGINTERN bzs::db::protocol::tdap::client::connMgr::records const *bzs_db_protocol_tdap_client_connMgr_sysvars(bzs::db::protocol::tdap::client::connMgr *self){
@@ -2626,6 +2627,21 @@ SWIGINTERN bzs::db::protocol::tdap::client::connMgr::records const *bzs_db_proto
2626
2627
  *p = self->inUseTables(connid, dbid);
2627
2628
  return p;
2628
2629
  }
2630
+ SWIGINTERN bzs::db::protocol::tdap::client::connMgr::records const *bzs_db_protocol_tdap_client_connMgr_channels(bzs::db::protocol::tdap::client::connMgr *self,bool withLock){
2631
+ bzs::db::protocol::tdap::client::connMgr::records* p = new bzs::db::protocol::tdap::client::connMgr::records();
2632
+ *p = self->channels(withLock);
2633
+ return p;
2634
+ }
2635
+ SWIGINTERN bzs::db::protocol::tdap::client::connMgr::records const *bzs_db_protocol_tdap_client_connMgr_slaveHosts(bzs::db::protocol::tdap::client::connMgr *self){
2636
+ bzs::db::protocol::tdap::client::connMgr::records* p = new bzs::db::protocol::tdap::client::connMgr::records();
2637
+ *p = self->slaveHosts();
2638
+ return p;
2639
+ }
2640
+ SWIGINTERN bzs::db::protocol::tdap::client::connMgr::records const *bzs_db_protocol_tdap_client_connMgr_extendedvars(bzs::db::protocol::tdap::client::connMgr *self){
2641
+ bzs::db::protocol::tdap::client::connMgr::records* p = new bzs::db::protocol::tdap::client::connMgr::records();
2642
+ *p = self->extendedvars();
2643
+ return p;
2644
+ }
2629
2645
  SWIGINTERN bzs::db::protocol::tdap::client::connMgr *new_bzs_db_protocol_tdap_client_connMgr(bzs::db::protocol::tdap::client::database *db){
2630
2646
  return bzs::db::protocol::tdap::client::connMgr::create(db);
2631
2647
  }
@@ -3081,41 +3097,6 @@ free_BOOKMARK(BOOKMARK *arg1) {
3081
3097
  delete arg1;
3082
3098
  }
3083
3099
 
3084
- SWIGINTERN VALUE
3085
- _wrap_canRecoverNetError(int argc, VALUE *argv, VALUE self) {
3086
- short arg1;
3087
- short val1;
3088
- int ecode1 = 0;
3089
- bool result;
3090
- VALUE vresult = Qnil;
3091
-
3092
- if ((argc < 1) || (argc > 1)) {
3093
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)", argc); SWIG_fail;
3094
- }
3095
- ecode1 = SWIG_AsVal_short(argv[0], &val1);
3096
- if (!SWIG_IsOK(ecode1)) {
3097
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError("", "short", "canRecoverNetError", 1, argv[0]));
3098
- }
3099
- arg1 = static_cast< short >(val1);
3100
- {
3101
- try {
3102
- result = (bool)canRecoverNetError(arg1);
3103
- }
3104
- catch (bzs::rtl::exception& e) {
3105
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
3106
- rb_raise(bzs_rtl_error, (*bzs::rtl::getMsg(e)).c_str());
3107
- }
3108
- catch (std::exception &e) {
3109
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
3110
- rb_raise(cpp_std_error, e.what());
3111
- }
3112
- }
3113
- vresult = SWIG_From_bool(static_cast< bool >(result));
3114
- return vresult;
3115
- fail:
3116
- return Qnil;
3117
- }
3118
-
3119
3100
 
3120
3101
  static swig_class SwigClassFLAGS;
3121
3102
 
@@ -12315,6 +12296,30 @@ fail:
12315
12296
  }
12316
12297
 
12317
12298
 
12299
+ SWIGINTERN VALUE
12300
+ _wrap_connRecord_port_get(int argc, VALUE *argv, VALUE self) {
12301
+ bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ;
12302
+ void *argp1 = 0 ;
12303
+ int res1 = 0 ;
12304
+ unsigned int result;
12305
+ VALUE vresult = Qnil;
12306
+
12307
+ if ((argc < 0) || (argc > 0)) {
12308
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
12309
+ }
12310
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__transactd__connection__record, 0 | 0 );
12311
+ if (!SWIG_IsOK(res1)) {
12312
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::transactd::connection::record *","port", 1, self ));
12313
+ }
12314
+ arg1 = reinterpret_cast< bzs::db::transactd::connection::record * >(argp1);
12315
+ result = (unsigned int) ((arg1)->port);
12316
+ vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
12317
+ return vresult;
12318
+ fail:
12319
+ return Qnil;
12320
+ }
12321
+
12322
+
12318
12323
  SWIGINTERN VALUE
12319
12324
  _wrap_connRecord_value_get(int argc, VALUE *argv, VALUE self) {
12320
12325
  bzs::db::transactd::connection::record *arg1 = (bzs::db::transactd::connection::record *) 0 ;
@@ -12750,6 +12755,152 @@ fail:
12750
12755
  }
12751
12756
 
12752
12757
 
12758
+ SWIGINTERN VALUE
12759
+ _wrap_connMgr_channels(int argc, VALUE *argv, VALUE self) {
12760
+ bzs::db::protocol::tdap::client::connMgr *arg1 = (bzs::db::protocol::tdap::client::connMgr *) 0 ;
12761
+ bool arg2 = false;
12762
+ void *argp1 = 0 ;
12763
+ int res1 = 0 ;
12764
+ bool val2 ;
12765
+ int ecode2 = 0 ;
12766
+ bzs::db::protocol::tdap::client::connMgr::records *result = 0 ;
12767
+ VALUE vresult = Qnil;
12768
+
12769
+ if ((argc < 0) || (argc > 1)) {
12770
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0or1)",argc); SWIG_fail;
12771
+ }
12772
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr, 0 | 0 );
12773
+ if (!SWIG_IsOK(res1)) {
12774
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr *","channels", 1, self ));
12775
+ }
12776
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::connMgr * >(argp1);
12777
+ if (argc == 1) {
12778
+ ecode2 = SWIG_AsVal_bool(argv[0], &val2);
12779
+ if (!SWIG_IsOK(ecode2)) {
12780
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","channels", 2, argv[0] ));
12781
+ }
12782
+ arg2 = static_cast< bool >(val2);
12783
+ }
12784
+ {
12785
+ try {
12786
+ result = (bzs::db::protocol::tdap::client::connMgr::records *)bzs_db_protocol_tdap_client_connMgr_channels(arg1,arg2);
12787
+ } catch (bzs::rtl::exception& e) {
12788
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
12789
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
12790
+ } catch (std::exception &e) {
12791
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
12792
+ rb_raise(cpp_std_error, e.what());
12793
+ }
12794
+ }
12795
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr__records, SWIG_POINTER_OWN | 0 );
12796
+ return vresult;
12797
+ fail:
12798
+ return Qnil;
12799
+ }
12800
+
12801
+
12802
+ SWIGINTERN VALUE
12803
+ _wrap_connMgr_slaveHosts(int argc, VALUE *argv, VALUE self) {
12804
+ bzs::db::protocol::tdap::client::connMgr *arg1 = (bzs::db::protocol::tdap::client::connMgr *) 0 ;
12805
+ void *argp1 = 0 ;
12806
+ int res1 = 0 ;
12807
+ bzs::db::protocol::tdap::client::connMgr::records *result = 0 ;
12808
+ VALUE vresult = Qnil;
12809
+
12810
+ if ((argc < 0) || (argc > 0)) {
12811
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
12812
+ }
12813
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr, 0 | 0 );
12814
+ if (!SWIG_IsOK(res1)) {
12815
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr *","slaveHosts", 1, self ));
12816
+ }
12817
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::connMgr * >(argp1);
12818
+ {
12819
+ try {
12820
+ result = (bzs::db::protocol::tdap::client::connMgr::records *)bzs_db_protocol_tdap_client_connMgr_slaveHosts(arg1);
12821
+ } catch (bzs::rtl::exception& e) {
12822
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
12823
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
12824
+ } catch (std::exception &e) {
12825
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
12826
+ rb_raise(cpp_std_error, e.what());
12827
+ }
12828
+ }
12829
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr__records, SWIG_POINTER_OWN | 0 );
12830
+ return vresult;
12831
+ fail:
12832
+ return Qnil;
12833
+ }
12834
+
12835
+
12836
+ SWIGINTERN VALUE
12837
+ _wrap_connMgr_extendedvars(int argc, VALUE *argv, VALUE self) {
12838
+ bzs::db::protocol::tdap::client::connMgr *arg1 = (bzs::db::protocol::tdap::client::connMgr *) 0 ;
12839
+ void *argp1 = 0 ;
12840
+ int res1 = 0 ;
12841
+ bzs::db::protocol::tdap::client::connMgr::records *result = 0 ;
12842
+ VALUE vresult = Qnil;
12843
+
12844
+ if ((argc < 0) || (argc > 0)) {
12845
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
12846
+ }
12847
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr, 0 | 0 );
12848
+ if (!SWIG_IsOK(res1)) {
12849
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr *","extendedvars", 1, self ));
12850
+ }
12851
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::connMgr * >(argp1);
12852
+ {
12853
+ try {
12854
+ result = (bzs::db::protocol::tdap::client::connMgr::records *)bzs_db_protocol_tdap_client_connMgr_extendedvars(arg1);
12855
+ } catch (bzs::rtl::exception& e) {
12856
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
12857
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
12858
+ } catch (std::exception &e) {
12859
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
12860
+ rb_raise(cpp_std_error, e.what());
12861
+ }
12862
+ }
12863
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr__records, SWIG_POINTER_OWN | 0 );
12864
+ return vresult;
12865
+ fail:
12866
+ return Qnil;
12867
+ }
12868
+
12869
+
12870
+ SWIGINTERN VALUE
12871
+ _wrap_connMgr_statusvars(int argc, VALUE *argv, VALUE self) {
12872
+ bzs::db::protocol::tdap::client::connMgr *arg1 = (bzs::db::protocol::tdap::client::connMgr *) 0 ;
12873
+ void *argp1 = 0 ;
12874
+ int res1 = 0 ;
12875
+ bzs::db::protocol::tdap::client::connMgr::records *result = 0 ;
12876
+ VALUE vresult = Qnil;
12877
+
12878
+ if ((argc < 0) || (argc > 0)) {
12879
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
12880
+ }
12881
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr, 0 | 0 );
12882
+ if (!SWIG_IsOK(res1)) {
12883
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr *","statusvars", 1, self ));
12884
+ }
12885
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::connMgr * >(argp1);
12886
+ {
12887
+ try {
12888
+ result = (bzs::db::protocol::tdap::client::connMgr::records *)bzs_db_protocol_tdap_client_connMgr_statusvars(arg1);
12889
+ } catch (bzs::rtl::exception& e) {
12890
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
12891
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
12892
+ } catch (std::exception &e) {
12893
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
12894
+ rb_raise(cpp_std_error, e.what());
12895
+ }
12896
+ }
12897
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr__records, SWIG_POINTER_OWN | 0 );
12898
+ return vresult;
12899
+ fail:
12900
+ return Qnil;
12901
+ }
12902
+
12903
+
12753
12904
  SWIGINTERN VALUE
12754
12905
  _wrap_connMgr_postDisconnectOne(int argc, VALUE *argv, VALUE self) {
12755
12906
  bzs::db::protocol::tdap::client::connMgr *arg1 = (bzs::db::protocol::tdap::client::connMgr *) 0 ;
@@ -12821,11 +12972,11 @@ fail:
12821
12972
 
12822
12973
 
12823
12974
  SWIGINTERN VALUE
12824
- _wrap_connMgr_stat(int argc, VALUE *argv, VALUE self) {
12975
+ _wrap_connMgr_haLock(int argc, VALUE *argv, VALUE self) {
12825
12976
  bzs::db::protocol::tdap::client::connMgr *arg1 = (bzs::db::protocol::tdap::client::connMgr *) 0 ;
12826
12977
  void *argp1 = 0 ;
12827
12978
  int res1 = 0 ;
12828
- short_td result;
12979
+ bool result;
12829
12980
  VALUE vresult = Qnil;
12830
12981
 
12831
12982
  if ((argc < 0) || (argc > 0)) {
@@ -12833,12 +12984,12 @@ _wrap_connMgr_stat(int argc, VALUE *argv, VALUE self) {
12833
12984
  }
12834
12985
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr, 0 | 0 );
12835
12986
  if (!SWIG_IsOK(res1)) {
12836
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr *","stat", 1, self ));
12987
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr *","haLock", 1, self ));
12837
12988
  }
12838
12989
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::connMgr * >(argp1);
12839
12990
  {
12840
12991
  try {
12841
- result = (short_td)(arg1)->stat();
12992
+ result = (bool)(arg1)->haLock();
12842
12993
  } catch (bzs::rtl::exception& e) {
12843
12994
  static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
12844
12995
  rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
@@ -12847,7 +12998,7 @@ _wrap_connMgr_stat(int argc, VALUE *argv, VALUE self) {
12847
12998
  rb_raise(cpp_std_error, e.what());
12848
12999
  }
12849
13000
  }
12850
- vresult = SWIG_From_short(static_cast< short >(result));
13001
+ vresult = SWIG_From_bool(static_cast< bool >(result));
12851
13002
  return vresult;
12852
13003
  fail:
12853
13004
  return Qnil;
@@ -12855,24 +13006,22 @@ fail:
12855
13006
 
12856
13007
 
12857
13008
  SWIGINTERN VALUE
12858
- _wrap_connMgr_db(int argc, VALUE *argv, VALUE self) {
13009
+ _wrap_connMgr_haUnlock(int argc, VALUE *argv, VALUE self) {
12859
13010
  bzs::db::protocol::tdap::client::connMgr *arg1 = (bzs::db::protocol::tdap::client::connMgr *) 0 ;
12860
13011
  void *argp1 = 0 ;
12861
13012
  int res1 = 0 ;
12862
- bzs::db::protocol::tdap::client::database *result = 0 ;
12863
- VALUE vresult = Qnil;
12864
13013
 
12865
13014
  if ((argc < 0) || (argc > 0)) {
12866
13015
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
12867
13016
  }
12868
13017
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr, 0 | 0 );
12869
13018
  if (!SWIG_IsOK(res1)) {
12870
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr const *","db", 1, self ));
13019
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr *","haUnlock", 1, self ));
12871
13020
  }
12872
13021
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::connMgr * >(argp1);
12873
13022
  {
12874
13023
  try {
12875
- result = (bzs::db::protocol::tdap::client::database *)((bzs::db::protocol::tdap::client::connMgr const *)arg1)->db();
13024
+ (arg1)->haUnlock();
12876
13025
  } catch (bzs::rtl::exception& e) {
12877
13026
  static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
12878
13027
  rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
@@ -12881,33 +13030,39 @@ _wrap_connMgr_db(int argc, VALUE *argv, VALUE self) {
12881
13030
  rb_raise(cpp_std_error, e.what());
12882
13031
  }
12883
13032
  }
12884
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__db__protocol__tdap__client__database, 0 | 0 );
12885
- return vresult;
13033
+ return Qnil;
12886
13034
  fail:
12887
13035
  return Qnil;
12888
13036
  }
12889
13037
 
12890
13038
 
12891
13039
  SWIGINTERN VALUE
12892
- _wrap_connMgr_removeSystemDb(int argc, VALUE *argv, VALUE self) {
12893
- bzs::db::protocol::tdap::client::connMgr::records *arg1 = 0 ;
13040
+ _wrap_connMgr_setRole(int argc, VALUE *argv, VALUE self) {
13041
+ bzs::db::protocol::tdap::client::connMgr *arg1 = (bzs::db::protocol::tdap::client::connMgr *) 0 ;
13042
+ int arg2 ;
12894
13043
  void *argp1 = 0 ;
12895
13044
  int res1 = 0 ;
13045
+ int val2 ;
13046
+ int ecode2 = 0 ;
13047
+ bool result;
13048
+ VALUE vresult = Qnil;
12896
13049
 
12897
13050
  if ((argc < 1) || (argc > 1)) {
12898
13051
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
12899
13052
  }
12900
- res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr__records, 0 );
13053
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr, 0 | 0 );
12901
13054
  if (!SWIG_IsOK(res1)) {
12902
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr::records &","bzs::db::protocol::tdap::client::connMgr::removeSystemDb", 1, argv[0] ));
12903
- }
12904
- if (!argp1) {
12905
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bzs::db::protocol::tdap::client::connMgr::records &","bzs::db::protocol::tdap::client::connMgr::removeSystemDb", 1, argv[0]));
13055
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr *","setRole", 1, self ));
12906
13056
  }
12907
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::connMgr::records * >(argp1);
13057
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::connMgr * >(argp1);
13058
+ ecode2 = SWIG_AsVal_int(argv[0], &val2);
13059
+ if (!SWIG_IsOK(ecode2)) {
13060
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setRole", 2, argv[0] ));
13061
+ }
13062
+ arg2 = static_cast< int >(val2);
12908
13063
  {
12909
13064
  try {
12910
- bzs::db::protocol::tdap::client::connMgr::removeSystemDb(*arg1);
13065
+ result = (bool)(arg1)->setRole(arg2);
12911
13066
  } catch (bzs::rtl::exception& e) {
12912
13067
  static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
12913
13068
  rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
@@ -12916,31 +13071,40 @@ _wrap_connMgr_removeSystemDb(int argc, VALUE *argv, VALUE self) {
12916
13071
  rb_raise(cpp_std_error, e.what());
12917
13072
  }
12918
13073
  }
12919
- return Qnil;
13074
+ vresult = SWIG_From_bool(static_cast< bool >(result));
13075
+ return vresult;
12920
13076
  fail:
12921
13077
  return Qnil;
12922
13078
  }
12923
13079
 
12924
13080
 
12925
13081
  SWIGINTERN VALUE
12926
- _wrap_connMgr_sysvarName(int argc, VALUE *argv, VALUE self) {
12927
- uint_td arg1 ;
12928
- unsigned int val1 ;
12929
- int ecode1 = 0 ;
12930
- _TCHAR *result = 0 ;
13082
+ _wrap_connMgr_setTrxBlock(int argc, VALUE *argv, VALUE self) {
13083
+ bzs::db::protocol::tdap::client::connMgr *arg1 = (bzs::db::protocol::tdap::client::connMgr *) 0 ;
13084
+ bool arg2 ;
13085
+ void *argp1 = 0 ;
13086
+ int res1 = 0 ;
13087
+ bool val2 ;
13088
+ int ecode2 = 0 ;
13089
+ bool result;
12931
13090
  VALUE vresult = Qnil;
12932
13091
 
12933
13092
  if ((argc < 1) || (argc > 1)) {
12934
13093
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
12935
13094
  }
12936
- ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
12937
- if (!SWIG_IsOK(ecode1)) {
12938
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint_td","bzs::db::protocol::tdap::client::connMgr::sysvarName", 1, argv[0] ));
13095
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr, 0 | 0 );
13096
+ if (!SWIG_IsOK(res1)) {
13097
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr *","setTrxBlock", 1, self ));
13098
+ }
13099
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::connMgr * >(argp1);
13100
+ ecode2 = SWIG_AsVal_bool(argv[0], &val2);
13101
+ if (!SWIG_IsOK(ecode2)) {
13102
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setTrxBlock", 2, argv[0] ));
12939
13103
  }
12940
- arg1 = static_cast< uint_td >(val1);
13104
+ arg2 = static_cast< bool >(val2);
12941
13105
  {
12942
13106
  try {
12943
- result = (_TCHAR *)bzs::db::protocol::tdap::client::connMgr::sysvarName(arg1);
13107
+ result = (bool)(arg1)->setTrxBlock(arg2);
12944
13108
  } catch (bzs::rtl::exception& e) {
12945
13109
  static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
12946
13110
  rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
@@ -12949,9 +13113,7 @@ _wrap_connMgr_sysvarName(int argc, VALUE *argv, VALUE self) {
12949
13113
  rb_raise(cpp_std_error, e.what());
12950
13114
  }
12951
13115
  }
12952
- {
12953
- vresult = rb_enc_str_new(result, strlen(result), rb_enc_find_from_codepage(CP_UTF8));
12954
- }
13116
+ vresult = SWIG_From_bool(static_cast< bool >(result));
12955
13117
  return vresult;
12956
13118
  fail:
12957
13119
  return Qnil;
@@ -12959,24 +13121,32 @@ fail:
12959
13121
 
12960
13122
 
12961
13123
  SWIGINTERN VALUE
12962
- _wrap_connMgr_statusvarName(int argc, VALUE *argv, VALUE self) {
12963
- uint_td arg1 ;
12964
- unsigned int val1 ;
12965
- int ecode1 = 0 ;
12966
- _TCHAR *result = 0 ;
13124
+ _wrap_connMgr_setEnableFailover(int argc, VALUE *argv, VALUE self) {
13125
+ bzs::db::protocol::tdap::client::connMgr *arg1 = (bzs::db::protocol::tdap::client::connMgr *) 0 ;
13126
+ bool arg2 ;
13127
+ void *argp1 = 0 ;
13128
+ int res1 = 0 ;
13129
+ bool val2 ;
13130
+ int ecode2 = 0 ;
13131
+ bool result;
12967
13132
  VALUE vresult = Qnil;
12968
13133
 
12969
13134
  if ((argc < 1) || (argc > 1)) {
12970
13135
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
12971
13136
  }
12972
- ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
12973
- if (!SWIG_IsOK(ecode1)) {
12974
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint_td","bzs::db::protocol::tdap::client::connMgr::statusvarName", 1, argv[0] ));
13137
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr, 0 | 0 );
13138
+ if (!SWIG_IsOK(res1)) {
13139
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr *","setEnableFailover", 1, self ));
13140
+ }
13141
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::connMgr * >(argp1);
13142
+ ecode2 = SWIG_AsVal_bool(argv[0], &val2);
13143
+ if (!SWIG_IsOK(ecode2)) {
13144
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setEnableFailover", 2, argv[0] ));
12975
13145
  }
12976
- arg1 = static_cast< uint_td >(val1);
13146
+ arg2 = static_cast< bool >(val2);
12977
13147
  {
12978
13148
  try {
12979
- result = (_TCHAR *)bzs::db::protocol::tdap::client::connMgr::statusvarName(arg1);
13149
+ result = (bool)(arg1)->setEnableFailover(arg2);
12980
13150
  } catch (bzs::rtl::exception& e) {
12981
13151
  static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
12982
13152
  rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
@@ -12985,9 +13155,75 @@ _wrap_connMgr_statusvarName(int argc, VALUE *argv, VALUE self) {
12985
13155
  rb_raise(cpp_std_error, e.what());
12986
13156
  }
12987
13157
  }
13158
+ vresult = SWIG_From_bool(static_cast< bool >(result));
13159
+ return vresult;
13160
+ fail:
13161
+ return Qnil;
13162
+ }
13163
+
13164
+
13165
+ SWIGINTERN VALUE
13166
+ _wrap_connMgr_stat(int argc, VALUE *argv, VALUE self) {
13167
+ bzs::db::protocol::tdap::client::connMgr *arg1 = (bzs::db::protocol::tdap::client::connMgr *) 0 ;
13168
+ void *argp1 = 0 ;
13169
+ int res1 = 0 ;
13170
+ short_td result;
13171
+ VALUE vresult = Qnil;
13172
+
13173
+ if ((argc < 0) || (argc > 0)) {
13174
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13175
+ }
13176
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr, 0 | 0 );
13177
+ if (!SWIG_IsOK(res1)) {
13178
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr const *","stat", 1, self ));
13179
+ }
13180
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::connMgr * >(argp1);
12988
13181
  {
12989
- vresult = rb_enc_str_new(result, strlen(result), rb_enc_find_from_codepage(CP_UTF8));
13182
+ try {
13183
+ result = (short_td)((bzs::db::protocol::tdap::client::connMgr const *)arg1)->stat();
13184
+ } catch (bzs::rtl::exception& e) {
13185
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
13186
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
13187
+ } catch (std::exception &e) {
13188
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
13189
+ rb_raise(cpp_std_error, e.what());
13190
+ }
12990
13191
  }
13192
+ vresult = SWIG_From_short(static_cast< short >(result));
13193
+ return vresult;
13194
+ fail:
13195
+ return Qnil;
13196
+ }
13197
+
13198
+
13199
+ SWIGINTERN VALUE
13200
+ _wrap_connMgr_db(int argc, VALUE *argv, VALUE self) {
13201
+ bzs::db::protocol::tdap::client::connMgr *arg1 = (bzs::db::protocol::tdap::client::connMgr *) 0 ;
13202
+ void *argp1 = 0 ;
13203
+ int res1 = 0 ;
13204
+ bzs::db::protocol::tdap::client::database *result = 0 ;
13205
+ VALUE vresult = Qnil;
13206
+
13207
+ if ((argc < 0) || (argc > 0)) {
13208
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13209
+ }
13210
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr, 0 | 0 );
13211
+ if (!SWIG_IsOK(res1)) {
13212
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr const *","db", 1, self ));
13213
+ }
13214
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::connMgr * >(argp1);
13215
+ {
13216
+ try {
13217
+ result = (bzs::db::protocol::tdap::client::database *)((bzs::db::protocol::tdap::client::connMgr const *)arg1)->db();
13218
+ } catch (bzs::rtl::exception& e) {
13219
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
13220
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
13221
+ } catch (std::exception &e) {
13222
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
13223
+ rb_raise(cpp_std_error, e.what());
13224
+ }
13225
+ }
13226
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__db__protocol__tdap__client__database, 0 | 0 );
12991
13227
  return vresult;
12992
13228
  fail:
12993
13229
  return Qnil;
@@ -13041,24 +13277,164 @@ fail:
13041
13277
 
13042
13278
 
13043
13279
  SWIGINTERN VALUE
13044
- _wrap_connMgr_create(int argc, VALUE *argv, VALUE self) {
13045
- bzs::db::protocol::tdap::client::database *arg1 = (bzs::db::protocol::tdap::client::database *) 0 ;
13280
+ _wrap_connMgr_isOpen(int argc, VALUE *argv, VALUE self) {
13281
+ bzs::db::protocol::tdap::client::connMgr *arg1 = (bzs::db::protocol::tdap::client::connMgr *) 0 ;
13046
13282
  void *argp1 = 0 ;
13047
13283
  int res1 = 0 ;
13048
- bzs::db::protocol::tdap::client::connMgr *result = 0 ;
13284
+ bool result;
13049
13285
  VALUE vresult = Qnil;
13050
13286
 
13287
+ if ((argc < 0) || (argc > 0)) {
13288
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13289
+ }
13290
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr, 0 | 0 );
13291
+ if (!SWIG_IsOK(res1)) {
13292
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr const *","isOpen", 1, self ));
13293
+ }
13294
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::connMgr * >(argp1);
13295
+ {
13296
+ try {
13297
+ result = (bool)((bzs::db::protocol::tdap::client::connMgr const *)arg1)->isOpen();
13298
+ } catch (bzs::rtl::exception& e) {
13299
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
13300
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
13301
+ } catch (std::exception &e) {
13302
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
13303
+ rb_raise(cpp_std_error, e.what());
13304
+ }
13305
+ }
13306
+ vresult = SWIG_From_bool(static_cast< bool >(result));
13307
+ return vresult;
13308
+ fail:
13309
+ return Qnil;
13310
+ }
13311
+
13312
+
13313
+ SWIGINTERN VALUE
13314
+ _wrap_connMgr_removeSystemDb(int argc, VALUE *argv, VALUE self) {
13315
+ bzs::db::protocol::tdap::client::connMgr::records *arg1 = 0 ;
13316
+ void *argp1 = 0 ;
13317
+ int res1 = 0 ;
13318
+
13051
13319
  if ((argc < 1) || (argc > 1)) {
13052
13320
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13053
13321
  }
13054
- res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__database, 0 | 0 );
13322
+ res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr__records, 0 );
13055
13323
  if (!SWIG_IsOK(res1)) {
13056
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::database *","bzs::db::protocol::tdap::client::connMgr::create", 1, argv[0] ));
13324
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr::records &","bzs::db::protocol::tdap::client::connMgr::removeSystemDb", 1, argv[0] ));
13057
13325
  }
13058
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::database * >(argp1);
13326
+ if (!argp1) {
13327
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bzs::db::protocol::tdap::client::connMgr::records &","bzs::db::protocol::tdap::client::connMgr::removeSystemDb", 1, argv[0]));
13328
+ }
13329
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::connMgr::records * >(argp1);
13330
+ {
13331
+ try {
13332
+ bzs::db::protocol::tdap::client::connMgr::removeSystemDb(*arg1);
13333
+ } catch (bzs::rtl::exception& e) {
13334
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
13335
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
13336
+ } catch (std::exception &e) {
13337
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
13338
+ rb_raise(cpp_std_error, e.what());
13339
+ }
13340
+ }
13341
+ return Qnil;
13342
+ fail:
13343
+ return Qnil;
13344
+ }
13345
+
13346
+
13347
+ SWIGINTERN VALUE
13348
+ _wrap_connMgr_sysvarName(int argc, VALUE *argv, VALUE self) {
13349
+ uint_td arg1 ;
13350
+ unsigned int val1 ;
13351
+ int ecode1 = 0 ;
13352
+ _TCHAR *result = 0 ;
13353
+ VALUE vresult = Qnil;
13354
+
13355
+ if ((argc < 1) || (argc > 1)) {
13356
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13357
+ }
13358
+ ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
13359
+ if (!SWIG_IsOK(ecode1)) {
13360
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint_td","bzs::db::protocol::tdap::client::connMgr::sysvarName", 1, argv[0] ));
13361
+ }
13362
+ arg1 = static_cast< uint_td >(val1);
13363
+ {
13364
+ try {
13365
+ result = (_TCHAR *)bzs::db::protocol::tdap::client::connMgr::sysvarName(arg1);
13366
+ } catch (bzs::rtl::exception& e) {
13367
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
13368
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
13369
+ } catch (std::exception &e) {
13370
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
13371
+ rb_raise(cpp_std_error, e.what());
13372
+ }
13373
+ }
13374
+ {
13375
+ vresult = rb_enc_str_new(result, strlen(result), rb_enc_find_from_codepage(CP_UTF8));
13376
+ }
13377
+ return vresult;
13378
+ fail:
13379
+ return Qnil;
13380
+ }
13381
+
13382
+
13383
+ SWIGINTERN VALUE
13384
+ _wrap_connMgr_statusvarName(int argc, VALUE *argv, VALUE self) {
13385
+ uint_td arg1 ;
13386
+ unsigned int val1 ;
13387
+ int ecode1 = 0 ;
13388
+ _TCHAR *result = 0 ;
13389
+ VALUE vresult = Qnil;
13390
+
13391
+ if ((argc < 1) || (argc > 1)) {
13392
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13393
+ }
13394
+ ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
13395
+ if (!SWIG_IsOK(ecode1)) {
13396
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint_td","bzs::db::protocol::tdap::client::connMgr::statusvarName", 1, argv[0] ));
13397
+ }
13398
+ arg1 = static_cast< uint_td >(val1);
13399
+ {
13400
+ try {
13401
+ result = (_TCHAR *)bzs::db::protocol::tdap::client::connMgr::statusvarName(arg1);
13402
+ } catch (bzs::rtl::exception& e) {
13403
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
13404
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
13405
+ } catch (std::exception &e) {
13406
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
13407
+ rb_raise(cpp_std_error, e.what());
13408
+ }
13409
+ }
13410
+ {
13411
+ vresult = rb_enc_str_new(result, strlen(result), rb_enc_find_from_codepage(CP_UTF8));
13412
+ }
13413
+ return vresult;
13414
+ fail:
13415
+ return Qnil;
13416
+ }
13417
+
13418
+
13419
+ SWIGINTERN VALUE
13420
+ _wrap_connMgr_extendedVarName(int argc, VALUE *argv, VALUE self) {
13421
+ uint_td arg1 ;
13422
+ unsigned int val1 ;
13423
+ int ecode1 = 0 ;
13424
+ _TCHAR *result = 0 ;
13425
+ VALUE vresult = Qnil;
13426
+
13427
+ if ((argc < 1) || (argc > 1)) {
13428
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13429
+ }
13430
+ ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
13431
+ if (!SWIG_IsOK(ecode1)) {
13432
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint_td","bzs::db::protocol::tdap::client::connMgr::extendedVarName", 1, argv[0] ));
13433
+ }
13434
+ arg1 = static_cast< uint_td >(val1);
13059
13435
  {
13060
13436
  try {
13061
- result = (bzs::db::protocol::tdap::client::connMgr *)bzs::db::protocol::tdap::client::connMgr::create(arg1);
13437
+ result = (_TCHAR *)bzs::db::protocol::tdap::client::connMgr::extendedVarName(arg1);
13062
13438
  } catch (bzs::rtl::exception& e) {
13063
13439
  static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
13064
13440
  rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
@@ -13067,7 +13443,9 @@ _wrap_connMgr_create(int argc, VALUE *argv, VALUE self) {
13067
13443
  rb_raise(cpp_std_error, e.what());
13068
13444
  }
13069
13445
  }
13070
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr, SWIG_POINTER_OWN | 0 );
13446
+ {
13447
+ vresult = rb_enc_str_new(result, strlen(result), rb_enc_find_from_codepage(CP_UTF8));
13448
+ }
13071
13449
  return vresult;
13072
13450
  fail:
13073
13451
  return Qnil;
@@ -13246,22 +13624,33 @@ fail:
13246
13624
  SWIGINTERN VALUE
13247
13625
  _wrap_connMgr_slaveStatus(int argc, VALUE *argv, VALUE self) {
13248
13626
  bzs::db::protocol::tdap::client::connMgr *arg1 = (bzs::db::protocol::tdap::client::connMgr *) 0 ;
13627
+ char *arg2 = (char *) 0;
13249
13628
  void *argp1 = 0 ;
13250
13629
  int res1 = 0 ;
13630
+ int res2 ;
13631
+ char *buf2 = 0 ;
13632
+ int alloc2 = 0 ;
13251
13633
  bzs::db::protocol::tdap::client::connMgr::records *result = 0 ;
13252
13634
  VALUE vresult = Qnil;
13253
13635
 
13254
- if ((argc < 0) || (argc > 0)) {
13255
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13636
+ if ((argc < 0) || (argc > 1)) {
13637
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0or1)",argc); SWIG_fail;
13256
13638
  }
13257
13639
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr, 0 | 0 );
13258
13640
  if (!SWIG_IsOK(res1)) {
13259
13641
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr *","slaveStatus", 1, self ));
13260
13642
  }
13261
13643
  arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::connMgr * >(argp1);
13644
+ if (argc == 1) {
13645
+ res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
13646
+ if (!SWIG_IsOK(res2)) {
13647
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","slaveStatus", 2, argv[0] ));
13648
+ }
13649
+ arg2 = reinterpret_cast< char * >(buf2);
13650
+ }
13262
13651
  {
13263
13652
  try {
13264
- result = (bzs::db::protocol::tdap::client::connMgr::records *)bzs_db_protocol_tdap_client_connMgr_slaveStatus(arg1);
13653
+ result = (bzs::db::protocol::tdap::client::connMgr::records *)bzs_db_protocol_tdap_client_connMgr_slaveStatus(arg1,(char const *)arg2);
13265
13654
  } catch (bzs::rtl::exception& e) {
13266
13655
  static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
13267
13656
  rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
@@ -13271,8 +13660,10 @@ _wrap_connMgr_slaveStatus(int argc, VALUE *argv, VALUE self) {
13271
13660
  }
13272
13661
  }
13273
13662
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr__records, SWIG_POINTER_OWN | 0 );
13663
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
13274
13664
  return vresult;
13275
13665
  fail:
13666
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
13276
13667
  return Qnil;
13277
13668
  }
13278
13669
 
@@ -13311,40 +13702,6 @@ fail:
13311
13702
  }
13312
13703
 
13313
13704
 
13314
- SWIGINTERN VALUE
13315
- _wrap_connMgr_statusvars(int argc, VALUE *argv, VALUE self) {
13316
- bzs::db::protocol::tdap::client::connMgr *arg1 = (bzs::db::protocol::tdap::client::connMgr *) 0 ;
13317
- void *argp1 = 0 ;
13318
- int res1 = 0 ;
13319
- bzs::db::protocol::tdap::client::connMgr::records *result = 0 ;
13320
- VALUE vresult = Qnil;
13321
-
13322
- if ((argc < 0) || (argc > 0)) {
13323
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13324
- }
13325
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr, 0 | 0 );
13326
- if (!SWIG_IsOK(res1)) {
13327
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::connMgr *","statusvars", 1, self ));
13328
- }
13329
- arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::connMgr * >(argp1);
13330
- {
13331
- try {
13332
- result = (bzs::db::protocol::tdap::client::connMgr::records *)bzs_db_protocol_tdap_client_connMgr_statusvars(arg1);
13333
- } catch (bzs::rtl::exception& e) {
13334
- static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
13335
- rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
13336
- } catch (std::exception &e) {
13337
- static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
13338
- rb_raise(cpp_std_error, e.what());
13339
- }
13340
- }
13341
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_bzs__db__protocol__tdap__client__connMgr__records, SWIG_POINTER_OWN | 0 );
13342
- return vresult;
13343
- fail:
13344
- return Qnil;
13345
- }
13346
-
13347
-
13348
13705
  SWIGINTERN VALUE
13349
13706
  _wrap_connMgr_connections(int argc, VALUE *argv, VALUE self) {
13350
13707
  bzs::db::protocol::tdap::client::connMgr *arg1 = (bzs::db::protocol::tdap::client::connMgr *) 0 ;
@@ -20097,6 +20454,48 @@ fail:
20097
20454
  }
20098
20455
 
20099
20456
 
20457
+ SWIGINTERN VALUE
20458
+ _wrap_binlogPos_gtid_set(int argc, VALUE *argv, VALUE self) {
20459
+ bzs::db::protocol::tdap::client::binlogPos *arg1 = (bzs::db::protocol::tdap::client::binlogPos *) 0 ;
20460
+ char *arg2 = (char *) 0 ;
20461
+ void *argp1 = 0 ;
20462
+ int res1 = 0 ;
20463
+ int res2 ;
20464
+ char *buf2 = 0 ;
20465
+ int alloc2 = 0 ;
20466
+
20467
+ if ((argc < 1) || (argc > 1)) {
20468
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
20469
+ }
20470
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_bzs__db__protocol__tdap__client__binlogPos, 0 | 0 );
20471
+ if (!SWIG_IsOK(res1)) {
20472
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "bzs::db::protocol::tdap::client::binlogPos *","gtid", 1, self ));
20473
+ }
20474
+ arg1 = reinterpret_cast< bzs::db::protocol::tdap::client::binlogPos * >(argp1);
20475
+ res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
20476
+ if (!SWIG_IsOK(res2)) {
20477
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","gtid", 2, argv[0] ));
20478
+ }
20479
+ arg2 = reinterpret_cast< char * >(buf2);
20480
+ {
20481
+ try {
20482
+ (arg1)->setGtid((char const *)arg2);
20483
+ } catch (bzs::rtl::exception& e) {
20484
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
20485
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
20486
+ } catch (std::exception &e) {
20487
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
20488
+ rb_raise(cpp_std_error, e.what());
20489
+ }
20490
+ }
20491
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
20492
+ return Qnil;
20493
+ fail:
20494
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
20495
+ return Qnil;
20496
+ }
20497
+
20498
+
20100
20499
  SWIGINTERN VALUE
20101
20500
  _wrap_binlogPos_gtid_get(int argc, VALUE *argv, VALUE self) {
20102
20501
  bzs::db::protocol::tdap::client::binlogPos *arg1 = (bzs::db::protocol::tdap::client::binlogPos *) 0 ;
@@ -21940,6 +22339,63 @@ fail:
21940
22339
  }
21941
22340
 
21942
22341
 
22342
+ SWIGINTERN VALUE
22343
+ _wrap_nsdatabase_enableAutoReconnect(int argc, VALUE *argv, VALUE self) {
22344
+ bool result;
22345
+ VALUE vresult = Qnil;
22346
+
22347
+ if ((argc < 0) || (argc > 0)) {
22348
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
22349
+ }
22350
+ {
22351
+ try {
22352
+ result = (bool)bzs::db::protocol::tdap::client::nsdatabase::enableAutoReconnect();
22353
+ } catch (bzs::rtl::exception& e) {
22354
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
22355
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
22356
+ } catch (std::exception &e) {
22357
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
22358
+ rb_raise(cpp_std_error, e.what());
22359
+ }
22360
+ }
22361
+ vresult = SWIG_From_bool(static_cast< bool >(result));
22362
+ return vresult;
22363
+ fail:
22364
+ return Qnil;
22365
+ }
22366
+
22367
+
22368
+ SWIGINTERN VALUE
22369
+ _wrap_nsdatabase_setEnableAutoReconnect(int argc, VALUE *argv, VALUE self) {
22370
+ bool arg1 ;
22371
+ bool val1 ;
22372
+ int ecode1 = 0 ;
22373
+
22374
+ if ((argc < 1) || (argc > 1)) {
22375
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
22376
+ }
22377
+ ecode1 = SWIG_AsVal_bool(argv[0], &val1);
22378
+ if (!SWIG_IsOK(ecode1)) {
22379
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "bool","bzs::db::protocol::tdap::client::nsdatabase::setEnableAutoReconnect", 1, argv[0] ));
22380
+ }
22381
+ arg1 = static_cast< bool >(val1);
22382
+ {
22383
+ try {
22384
+ bzs::db::protocol::tdap::client::nsdatabase::setEnableAutoReconnect(arg1);
22385
+ } catch (bzs::rtl::exception& e) {
22386
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
22387
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
22388
+ } catch (std::exception &e) {
22389
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
22390
+ rb_raise(cpp_std_error, e.what());
22391
+ }
22392
+ }
22393
+ return Qnil;
22394
+ fail:
22395
+ return Qnil;
22396
+ }
22397
+
22398
+
21943
22399
  SWIGINTERN VALUE
21944
22400
  _wrap_nsdatabase_setCheckTablePtr(int argc, VALUE *argv, VALUE self) {
21945
22401
  bool arg1 ;
@@ -36870,6 +37326,418 @@ fail:
36870
37326
  }
36871
37327
 
36872
37328
 
37329
+ static swig_class SwigClassHaNameResolver;
37330
+
37331
+ SWIGINTERN VALUE
37332
+ _wrap_haNameResolver_start__SWIG_0(int argc, VALUE *argv, VALUE self) {
37333
+ char *arg1 = (char *) 0 ;
37334
+ char *arg2 = (char *) 0 ;
37335
+ char *arg3 = (char *) 0 ;
37336
+ short arg4 ;
37337
+ char *arg5 = (char *) 0 ;
37338
+ char *arg6 = (char *) 0 ;
37339
+ int arg7 ;
37340
+ int res1 ;
37341
+ char *buf1 = 0 ;
37342
+ int alloc1 = 0 ;
37343
+ int res2 ;
37344
+ char *buf2 = 0 ;
37345
+ int alloc2 = 0 ;
37346
+ int res3 ;
37347
+ char *buf3 = 0 ;
37348
+ int alloc3 = 0 ;
37349
+ short val4 ;
37350
+ int ecode4 = 0 ;
37351
+ int res5 ;
37352
+ char *buf5 = 0 ;
37353
+ int alloc5 = 0 ;
37354
+ int res6 ;
37355
+ char *buf6 = 0 ;
37356
+ int alloc6 = 0 ;
37357
+ int val7 ;
37358
+ int ecode7 = 0 ;
37359
+ int result;
37360
+ VALUE vresult = Qnil;
37361
+
37362
+ if ((argc < 7) || (argc > 7)) {
37363
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
37364
+ }
37365
+ res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
37366
+ if (!SWIG_IsOK(res1)) {
37367
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","bzs::db::protocol::tdap::client::haNameResolver::start", 1, argv[0] ));
37368
+ }
37369
+ arg1 = reinterpret_cast< char * >(buf1);
37370
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
37371
+ if (!SWIG_IsOK(res2)) {
37372
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","bzs::db::protocol::tdap::client::haNameResolver::start", 2, argv[1] ));
37373
+ }
37374
+ arg2 = reinterpret_cast< char * >(buf2);
37375
+ res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
37376
+ if (!SWIG_IsOK(res3)) {
37377
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","bzs::db::protocol::tdap::client::haNameResolver::start", 3, argv[2] ));
37378
+ }
37379
+ arg3 = reinterpret_cast< char * >(buf3);
37380
+ ecode4 = SWIG_AsVal_short(argv[3], &val4);
37381
+ if (!SWIG_IsOK(ecode4)) {
37382
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "short","bzs::db::protocol::tdap::client::haNameResolver::start", 4, argv[3] ));
37383
+ }
37384
+ arg4 = static_cast< short >(val4);
37385
+ res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5);
37386
+ if (!SWIG_IsOK(res5)) {
37387
+ SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char const *","bzs::db::protocol::tdap::client::haNameResolver::start", 5, argv[4] ));
37388
+ }
37389
+ arg5 = reinterpret_cast< char * >(buf5);
37390
+ res6 = SWIG_AsCharPtrAndSize(argv[5], &buf6, NULL, &alloc6);
37391
+ if (!SWIG_IsOK(res6)) {
37392
+ SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "char const *","bzs::db::protocol::tdap::client::haNameResolver::start", 6, argv[5] ));
37393
+ }
37394
+ arg6 = reinterpret_cast< char * >(buf6);
37395
+ ecode7 = SWIG_AsVal_int(argv[6], &val7);
37396
+ if (!SWIG_IsOK(ecode7)) {
37397
+ SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","bzs::db::protocol::tdap::client::haNameResolver::start", 7, argv[6] ));
37398
+ }
37399
+ arg7 = static_cast< int >(val7);
37400
+ {
37401
+ try {
37402
+ result = (int)bzs::db::protocol::tdap::client::haNameResolver::start((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,(char const *)arg5,(char const *)arg6,arg7);
37403
+ } catch (bzs::rtl::exception& e) {
37404
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
37405
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
37406
+ } catch (std::exception &e) {
37407
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
37408
+ rb_raise(cpp_std_error, e.what());
37409
+ }
37410
+ }
37411
+ vresult = SWIG_From_int(static_cast< int >(result));
37412
+ if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
37413
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
37414
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
37415
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
37416
+ if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
37417
+ return vresult;
37418
+ fail:
37419
+ if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
37420
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
37421
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
37422
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
37423
+ if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
37424
+ return Qnil;
37425
+ }
37426
+
37427
+
37428
+ SWIGINTERN VALUE
37429
+ _wrap_haNameResolver_start__SWIG_1(int argc, VALUE *argv, VALUE self) {
37430
+ char *arg1 = (char *) 0 ;
37431
+ char *arg2 = (char *) 0 ;
37432
+ char *arg3 = (char *) 0 ;
37433
+ short arg4 ;
37434
+ char *arg5 = (char *) 0 ;
37435
+ char *arg6 = (char *) 0 ;
37436
+ int res1 ;
37437
+ char *buf1 = 0 ;
37438
+ int alloc1 = 0 ;
37439
+ int res2 ;
37440
+ char *buf2 = 0 ;
37441
+ int alloc2 = 0 ;
37442
+ int res3 ;
37443
+ char *buf3 = 0 ;
37444
+ int alloc3 = 0 ;
37445
+ short val4 ;
37446
+ int ecode4 = 0 ;
37447
+ int res5 ;
37448
+ char *buf5 = 0 ;
37449
+ int alloc5 = 0 ;
37450
+ int res6 ;
37451
+ char *buf6 = 0 ;
37452
+ int alloc6 = 0 ;
37453
+ int result;
37454
+ VALUE vresult = Qnil;
37455
+
37456
+ if ((argc < 6) || (argc > 6)) {
37457
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
37458
+ }
37459
+ res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
37460
+ if (!SWIG_IsOK(res1)) {
37461
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","bzs::db::protocol::tdap::client::haNameResolver::start", 1, argv[0] ));
37462
+ }
37463
+ arg1 = reinterpret_cast< char * >(buf1);
37464
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
37465
+ if (!SWIG_IsOK(res2)) {
37466
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","bzs::db::protocol::tdap::client::haNameResolver::start", 2, argv[1] ));
37467
+ }
37468
+ arg2 = reinterpret_cast< char * >(buf2);
37469
+ res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
37470
+ if (!SWIG_IsOK(res3)) {
37471
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","bzs::db::protocol::tdap::client::haNameResolver::start", 3, argv[2] ));
37472
+ }
37473
+ arg3 = reinterpret_cast< char * >(buf3);
37474
+ ecode4 = SWIG_AsVal_short(argv[3], &val4);
37475
+ if (!SWIG_IsOK(ecode4)) {
37476
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "short","bzs::db::protocol::tdap::client::haNameResolver::start", 4, argv[3] ));
37477
+ }
37478
+ arg4 = static_cast< short >(val4);
37479
+ res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5);
37480
+ if (!SWIG_IsOK(res5)) {
37481
+ SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char const *","bzs::db::protocol::tdap::client::haNameResolver::start", 5, argv[4] ));
37482
+ }
37483
+ arg5 = reinterpret_cast< char * >(buf5);
37484
+ res6 = SWIG_AsCharPtrAndSize(argv[5], &buf6, NULL, &alloc6);
37485
+ if (!SWIG_IsOK(res6)) {
37486
+ SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "char const *","bzs::db::protocol::tdap::client::haNameResolver::start", 6, argv[5] ));
37487
+ }
37488
+ arg6 = reinterpret_cast< char * >(buf6);
37489
+ {
37490
+ try {
37491
+ result = (int)bzs::db::protocol::tdap::client::haNameResolver::start((char const *)arg1,(char const *)arg2,(char const *)arg3,arg4,(char const *)arg5,(char const *)arg6);
37492
+ } catch (bzs::rtl::exception& e) {
37493
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
37494
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
37495
+ } catch (std::exception &e) {
37496
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
37497
+ rb_raise(cpp_std_error, e.what());
37498
+ }
37499
+ }
37500
+ vresult = SWIG_From_int(static_cast< int >(result));
37501
+ if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
37502
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
37503
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
37504
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
37505
+ if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
37506
+ return vresult;
37507
+ fail:
37508
+ if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
37509
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
37510
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
37511
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
37512
+ if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
37513
+ return Qnil;
37514
+ }
37515
+
37516
+
37517
+ SWIGINTERN VALUE _wrap_haNameResolver_start(int nargs, VALUE *args, VALUE self) {
37518
+ int argc;
37519
+ VALUE argv[7];
37520
+ int ii;
37521
+
37522
+ argc = nargs;
37523
+ if (argc > 7) SWIG_fail;
37524
+ for (ii = 0; (ii < argc); ++ii) {
37525
+ argv[ii] = args[ii];
37526
+ }
37527
+ if (argc == 6) {
37528
+ int _v;
37529
+ int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
37530
+ _v = SWIG_CheckState(res);
37531
+ if (_v) {
37532
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
37533
+ _v = SWIG_CheckState(res);
37534
+ if (_v) {
37535
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
37536
+ _v = SWIG_CheckState(res);
37537
+ if (_v) {
37538
+ {
37539
+ int res = SWIG_AsVal_short(argv[3], NULL);
37540
+ _v = SWIG_CheckState(res);
37541
+ }
37542
+ if (_v) {
37543
+ int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0);
37544
+ _v = SWIG_CheckState(res);
37545
+ if (_v) {
37546
+ int res = SWIG_AsCharPtrAndSize(argv[5], 0, NULL, 0);
37547
+ _v = SWIG_CheckState(res);
37548
+ if (_v) {
37549
+ return _wrap_haNameResolver_start__SWIG_1(nargs, args, self);
37550
+ }
37551
+ }
37552
+ }
37553
+ }
37554
+ }
37555
+ }
37556
+ }
37557
+ if (argc == 7) {
37558
+ int _v;
37559
+ int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
37560
+ _v = SWIG_CheckState(res);
37561
+ if (_v) {
37562
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
37563
+ _v = SWIG_CheckState(res);
37564
+ if (_v) {
37565
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
37566
+ _v = SWIG_CheckState(res);
37567
+ if (_v) {
37568
+ {
37569
+ int res = SWIG_AsVal_short(argv[3], NULL);
37570
+ _v = SWIG_CheckState(res);
37571
+ }
37572
+ if (_v) {
37573
+ int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0);
37574
+ _v = SWIG_CheckState(res);
37575
+ if (_v) {
37576
+ int res = SWIG_AsCharPtrAndSize(argv[5], 0, NULL, 0);
37577
+ _v = SWIG_CheckState(res);
37578
+ if (_v) {
37579
+ {
37580
+ int res = SWIG_AsVal_int(argv[6], NULL);
37581
+ _v = SWIG_CheckState(res);
37582
+ }
37583
+ if (_v) {
37584
+ return _wrap_haNameResolver_start__SWIG_0(nargs, args, self);
37585
+ }
37586
+ }
37587
+ }
37588
+ }
37589
+ }
37590
+ }
37591
+ }
37592
+ }
37593
+
37594
+ fail:
37595
+ Ruby_Format_OverloadedError( argc, 7, "haNameResolver.start",
37596
+ " int haNameResolver.start(char const *master, char const *slaves, char const *slaveHostsWithPort, short slaveNum, char const *userName, char const *password, int option)\n"
37597
+ " int haNameResolver.start(char const *master, char const *slaves, char const *slaveHostsWithPort, short slaveNum, char const *userName, char const *password)\n");
37598
+
37599
+ return Qnil;
37600
+ }
37601
+
37602
+
37603
+ SWIGINTERN VALUE
37604
+ _wrap_haNameResolver_addPortMap(int argc, VALUE *argv, VALUE self) {
37605
+ short arg1 ;
37606
+ short arg2 ;
37607
+ short val1 ;
37608
+ int ecode1 = 0 ;
37609
+ short val2 ;
37610
+ int ecode2 = 0 ;
37611
+
37612
+ if ((argc < 2) || (argc > 2)) {
37613
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
37614
+ }
37615
+ ecode1 = SWIG_AsVal_short(argv[0], &val1);
37616
+ if (!SWIG_IsOK(ecode1)) {
37617
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "short","bzs::db::protocol::tdap::client::haNameResolver::addPortMap", 1, argv[0] ));
37618
+ }
37619
+ arg1 = static_cast< short >(val1);
37620
+ ecode2 = SWIG_AsVal_short(argv[1], &val2);
37621
+ if (!SWIG_IsOK(ecode2)) {
37622
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","bzs::db::protocol::tdap::client::haNameResolver::addPortMap", 2, argv[1] ));
37623
+ }
37624
+ arg2 = static_cast< short >(val2);
37625
+ {
37626
+ try {
37627
+ bzs::db::protocol::tdap::client::haNameResolver::addPortMap(arg1,arg2);
37628
+ } catch (bzs::rtl::exception& e) {
37629
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
37630
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
37631
+ } catch (std::exception &e) {
37632
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
37633
+ rb_raise(cpp_std_error, e.what());
37634
+ }
37635
+ }
37636
+ return Qnil;
37637
+ fail:
37638
+ return Qnil;
37639
+ }
37640
+
37641
+
37642
+ SWIGINTERN VALUE
37643
+ _wrap_haNameResolver_clearPortMap(int argc, VALUE *argv, VALUE self) {
37644
+ if ((argc < 0) || (argc > 0)) {
37645
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
37646
+ }
37647
+ {
37648
+ try {
37649
+ bzs::db::protocol::tdap::client::haNameResolver::clearPortMap();
37650
+ } catch (bzs::rtl::exception& e) {
37651
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
37652
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
37653
+ } catch (std::exception &e) {
37654
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
37655
+ rb_raise(cpp_std_error, e.what());
37656
+ }
37657
+ }
37658
+ return Qnil;
37659
+ fail:
37660
+ return Qnil;
37661
+ }
37662
+
37663
+
37664
+ SWIGINTERN VALUE
37665
+ _wrap_haNameResolver_stop(int argc, VALUE *argv, VALUE self) {
37666
+ if ((argc < 0) || (argc > 0)) {
37667
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
37668
+ }
37669
+ {
37670
+ try {
37671
+ bzs::db::protocol::tdap::client::haNameResolver::stop();
37672
+ } catch (bzs::rtl::exception& e) {
37673
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
37674
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
37675
+ } catch (std::exception &e) {
37676
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
37677
+ rb_raise(cpp_std_error, e.what());
37678
+ }
37679
+ }
37680
+ return Qnil;
37681
+ fail:
37682
+ return Qnil;
37683
+ }
37684
+
37685
+
37686
+ SWIGINTERN VALUE
37687
+ _wrap_haNameResolver_master(int argc, VALUE *argv, VALUE self) {
37688
+ char *result = 0 ;
37689
+ VALUE vresult = Qnil;
37690
+
37691
+ if ((argc < 0) || (argc > 0)) {
37692
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
37693
+ }
37694
+ {
37695
+ try {
37696
+ result = (char *)bzs::db::protocol::tdap::client::haNameResolver::master();
37697
+ } catch (bzs::rtl::exception& e) {
37698
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
37699
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
37700
+ } catch (std::exception &e) {
37701
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
37702
+ rb_raise(cpp_std_error, e.what());
37703
+ }
37704
+ }
37705
+ {
37706
+ vresult = rb_enc_str_new(result, strlen(result), rb_enc_find_from_codepage(CP_UTF8));
37707
+ }
37708
+ return vresult;
37709
+ fail:
37710
+ return Qnil;
37711
+ }
37712
+
37713
+
37714
+ SWIGINTERN VALUE
37715
+ _wrap_haNameResolver_slave(int argc, VALUE *argv, VALUE self) {
37716
+ char *result = 0 ;
37717
+ VALUE vresult = Qnil;
37718
+
37719
+ if ((argc < 0) || (argc > 0)) {
37720
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
37721
+ }
37722
+ {
37723
+ try {
37724
+ result = (char *)bzs::db::protocol::tdap::client::haNameResolver::slave();
37725
+ } catch (bzs::rtl::exception& e) {
37726
+ static VALUE bzs_rtl_error = rb_define_class("BZS_RTL_Error", rb_eStandardError);
37727
+ rb_raise(bzs_rtl_error, (* bzs::rtl::getMsg(e)).c_str());
37728
+ } catch (std::exception &e) {
37729
+ static VALUE cpp_std_error = rb_define_class("CPP_STD_Error", rb_eStandardError);
37730
+ rb_raise(cpp_std_error, e.what());
37731
+ }
37732
+ }
37733
+ {
37734
+ vresult = rb_enc_str_new(result, strlen(result), rb_enc_find_from_codepage(CP_UTF8));
37735
+ }
37736
+ return vresult;
37737
+ fail:
37738
+ return Qnil;
37739
+ }
37740
+
36873
37741
 
36874
37742
  /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
36875
37743
 
@@ -37864,7 +38732,10 @@ SWIGEXPORT void Init_transactd(void) {
37864
38732
  rb_define_const(mTransactd, "ERROR_TD_NET_TOO_BIGDATA", SWIG_From_int(static_cast< int >(ERROR_TD_NET_TOO_BIGDATA)));
37865
38733
  rb_define_const(mTransactd, "ERROR_TD_NET_OTHER", SWIG_From_int(static_cast< int >(ERROR_TD_NET_OTHER)));
37866
38734
  rb_define_const(mTransactd, "ERROR_TD_C_CLIENT_UNKNOWN", SWIG_From_int(static_cast< int >(ERROR_TD_C_CLIENT_UNKNOWN)));
38735
+ rb_define_const(mTransactd, "ERROR_TD_INVALID_SERVER_ROLE", SWIG_From_int(static_cast< int >(ERROR_TD_INVALID_SERVER_ROLE)));
37867
38736
  rb_define_const(mTransactd, "ERROR_TD_RECONNECTED", SWIG_From_int(static_cast< int >(ERROR_TD_RECONNECTED)));
38737
+ rb_define_const(mTransactd, "ERROR_TD_RECONNECTED_OFFSET", SWIG_From_int(static_cast< int >(ERROR_TD_RECONNECTED_OFFSET)));
38738
+ rb_define_const(mTransactd, "MYSQL_ERROR_OFFSET", SWIG_From_int(static_cast< int >(MYSQL_ERROR_OFFSET)));
37868
38739
  rb_define_const(mTransactd, "TRANSACTD_SCHEMANAME", SWIG_FromCharPtr(TRANSACTD_SCHEMANAME));
37869
38740
  rb_define_const(mTransactd, "TYPE_SCHEMA_BDF", SWIG_From_int(static_cast< int >(TYPE_SCHEMA_BDF)));
37870
38741
  rb_define_const(mTransactd, "TYPE_SCHEMA_DDF", SWIG_From_int(static_cast< int >(TYPE_SCHEMA_DDF)));
@@ -37882,6 +38753,11 @@ SWIGEXPORT void Init_transactd(void) {
37882
38753
  rb_define_const(mTransactd, "TD_BACKUP_MODE_NOT_PERMIT", SWIG_From_int(static_cast< int >(TD_BACKUP_MODE_NOT_PERMIT)));
37883
38754
  rb_define_const(mTransactd, "TD_BACKUP_MODE_SERVER_ERROR", SWIG_From_int(static_cast< int >(TD_BACKUP_MODE_SERVER_ERROR)));
37884
38755
  rb_define_const(mTransactd, "DFV_TIMESTAMP_DEFAULT", SWIG_From_double(static_cast< double >(1.0)));
38756
+ rb_define_const(mTransactd, "HA_ROLE_SLAVE", SWIG_From_int(static_cast< int >(HA_ROLE_SLAVE)));
38757
+ rb_define_const(mTransactd, "HA_ROLE_MASTER", SWIG_From_int(static_cast< int >(HA_ROLE_MASTER)));
38758
+ rb_define_const(mTransactd, "HA_ROLE_NONE", SWIG_From_int(static_cast< int >(HA_ROLE_NONE)));
38759
+ rb_define_const(mTransactd, "HA_RESTORE_ROLE", SWIG_From_int(static_cast< int >(HA_RESTORE_ROLE)));
38760
+ rb_define_const(mTransactd, "HA_ENABLE_FAILOVER", SWIG_From_int(static_cast< int >(HA_ENABLE_FAILOVER)));
37885
38761
  rb_define_const(mTransactd, "CPP_INTERFACE_VER_MAJOR", SWIG_FromCharPtr(CPP_INTERFACE_VER_MAJOR));
37886
38762
  rb_define_const(mTransactd, "CPP_INTERFACE_VER_MINOR", SWIG_FromCharPtr(CPP_INTERFACE_VER_MINOR));
37887
38763
  rb_define_const(mTransactd, "CPP_INTERFACE_VER_RELEASE", SWIG_FromCharPtr(CPP_INTERFACE_VER_RELEASE));
@@ -38200,6 +39076,7 @@ SWIGEXPORT void Init_transactd(void) {
38200
39076
  rb_define_method(SwigClassConnRecord.klass, "openReadOnly", VALUEFUNC(_wrap_connRecord_openReadOnly_get), -1);
38201
39077
  rb_define_method(SwigClassConnRecord.klass, "openEx", VALUEFUNC(_wrap_connRecord_openEx_get), -1);
38202
39078
  rb_define_method(SwigClassConnRecord.klass, "openReadOnlyEx", VALUEFUNC(_wrap_connRecord_openReadOnlyEx_get), -1);
39079
+ rb_define_method(SwigClassConnRecord.klass, "port", VALUEFUNC(_wrap_connRecord_port_get), -1);
38203
39080
  SwigClassConnRecord.mark = 0;
38204
39081
  SwigClassConnRecord.destroy = (void (*)(void *)) free_bzs_db_transactd_connection_record;
38205
39082
  SwigClassConnRecord.trackObjects = 0;
@@ -38220,22 +39097,31 @@ SWIGEXPORT void Init_transactd(void) {
38220
39097
  rb_define_method(SwigClassConnMgr.klass, "initialize", VALUEFUNC(_wrap_new_connMgr), -1);
38221
39098
  rb_define_method(SwigClassConnMgr.klass, "connect", VALUEFUNC(_wrap_connMgr_connect), -1);
38222
39099
  rb_define_method(SwigClassConnMgr.klass, "disconnect", VALUEFUNC(_wrap_connMgr_disconnect), -1);
39100
+ rb_define_method(SwigClassConnMgr.klass, "channels", VALUEFUNC(_wrap_connMgr_channels), -1);
39101
+ rb_define_method(SwigClassConnMgr.klass, "slaveHosts", VALUEFUNC(_wrap_connMgr_slaveHosts), -1);
39102
+ rb_define_method(SwigClassConnMgr.klass, "extendedvars", VALUEFUNC(_wrap_connMgr_extendedvars), -1);
39103
+ rb_define_method(SwigClassConnMgr.klass, "statusvars", VALUEFUNC(_wrap_connMgr_statusvars), -1);
38223
39104
  rb_define_method(SwigClassConnMgr.klass, "postDisconnectOne", VALUEFUNC(_wrap_connMgr_postDisconnectOne), -1);
38224
39105
  rb_define_method(SwigClassConnMgr.klass, "postDisconnectAll", VALUEFUNC(_wrap_connMgr_postDisconnectAll), -1);
39106
+ rb_define_method(SwigClassConnMgr.klass, "haLock", VALUEFUNC(_wrap_connMgr_haLock), -1);
39107
+ rb_define_method(SwigClassConnMgr.klass, "haUnlock", VALUEFUNC(_wrap_connMgr_haUnlock), -1);
39108
+ rb_define_method(SwigClassConnMgr.klass, "setRole", VALUEFUNC(_wrap_connMgr_setRole), -1);
39109
+ rb_define_method(SwigClassConnMgr.klass, "setTrxBlock", VALUEFUNC(_wrap_connMgr_setTrxBlock), -1);
39110
+ rb_define_method(SwigClassConnMgr.klass, "setEnableFailover", VALUEFUNC(_wrap_connMgr_setEnableFailover), -1);
38225
39111
  rb_define_method(SwigClassConnMgr.klass, "stat", VALUEFUNC(_wrap_connMgr_stat), -1);
38226
39112
  rb_define_method(SwigClassConnMgr.klass, "db", VALUEFUNC(_wrap_connMgr_db), -1);
38227
39113
  rb_define_method(SwigClassConnMgr.klass, "slaveStatusName", VALUEFUNC(_wrap_connMgr_slaveStatusName), -1);
39114
+ rb_define_method(SwigClassConnMgr.klass, "isOpen", VALUEFUNC(_wrap_connMgr_isOpen), -1);
38228
39115
  rb_define_singleton_method(SwigClassConnMgr.klass, "removeSystemDb", VALUEFUNC(_wrap_connMgr_removeSystemDb), -1);
38229
39116
  rb_define_singleton_method(SwigClassConnMgr.klass, "sysvarName", VALUEFUNC(_wrap_connMgr_sysvarName), -1);
38230
39117
  rb_define_singleton_method(SwigClassConnMgr.klass, "statusvarName", VALUEFUNC(_wrap_connMgr_statusvarName), -1);
38231
- rb_define_singleton_method(SwigClassConnMgr.klass, "create", VALUEFUNC(_wrap_connMgr_create), -1);
39118
+ rb_define_singleton_method(SwigClassConnMgr.klass, "extendedVarName", VALUEFUNC(_wrap_connMgr_extendedVarName), -1);
38232
39119
  rb_define_method(SwigClassConnMgr.klass, "databases", VALUEFUNC(_wrap_connMgr_databases), -1);
38233
39120
  rb_define_method(SwigClassConnMgr.klass, "tables", VALUEFUNC(_wrap_connMgr_tables), -1);
38234
39121
  rb_define_method(SwigClassConnMgr.klass, "views", VALUEFUNC(_wrap_connMgr_views), -1);
38235
39122
  rb_define_method(SwigClassConnMgr.klass, "schemaTables", VALUEFUNC(_wrap_connMgr_schemaTables), -1);
38236
39123
  rb_define_method(SwigClassConnMgr.klass, "slaveStatus", VALUEFUNC(_wrap_connMgr_slaveStatus), -1);
38237
39124
  rb_define_method(SwigClassConnMgr.klass, "sysvars", VALUEFUNC(_wrap_connMgr_sysvars), -1);
38238
- rb_define_method(SwigClassConnMgr.klass, "statusvars", VALUEFUNC(_wrap_connMgr_statusvars), -1);
38239
39125
  rb_define_method(SwigClassConnMgr.klass, "connections", VALUEFUNC(_wrap_connMgr_connections), -1);
38240
39126
  rb_define_method(SwigClassConnMgr.klass, "inUseDatabases", VALUEFUNC(_wrap_connMgr_inUseDatabases), -1);
38241
39127
  rb_define_method(SwigClassConnMgr.klass, "inUseTables", VALUEFUNC(_wrap_connMgr_inUseTables), -1);
@@ -38408,6 +39294,7 @@ SWIGEXPORT void Init_transactd(void) {
38408
39294
  rb_define_method(SwigClassBinlogPos.klass, "pos", VALUEFUNC(_wrap_binlogPos_pos_get), -1);
38409
39295
  rb_define_method(SwigClassBinlogPos.klass, "type", VALUEFUNC(_wrap_binlogPos_type_get), -1);
38410
39296
  rb_define_method(SwigClassBinlogPos.klass, "filename", VALUEFUNC(_wrap_binlogPos_filename_get), -1);
39297
+ rb_define_method(SwigClassBinlogPos.klass, "gtid=", VALUEFUNC(_wrap_binlogPos_gtid_set), -1);
38411
39298
  rb_define_method(SwigClassBinlogPos.klass, "gtid", VALUEFUNC(_wrap_binlogPos_gtid_get), -1);
38412
39299
  SwigClassBinlogPos.mark = 0;
38413
39300
  SwigClassBinlogPos.destroy = (void (*)(void *)) free_bzs_db_protocol_tdap_client_binlogPos;
@@ -38454,6 +39341,8 @@ SWIGEXPORT void Init_transactd(void) {
38454
39341
  rb_define_singleton_method(SwigClassNsdatabase.klass, "trnsactionFlushWaitStatus", VALUEFUNC(_wrap_nsdatabase_trnsactionFlushWaitStatus), -1);
38455
39342
  rb_define_singleton_method(SwigClassNsdatabase.klass, "setExecCodePage", VALUEFUNC(_wrap_nsdatabase_setExecCodePage), -1);
38456
39343
  rb_define_singleton_method(SwigClassNsdatabase.klass, "execCodePage", VALUEFUNC(_wrap_nsdatabase_execCodePage), -1);
39344
+ rb_define_singleton_method(SwigClassNsdatabase.klass, "enableAutoReconnect", VALUEFUNC(_wrap_nsdatabase_enableAutoReconnect), -1);
39345
+ rb_define_singleton_method(SwigClassNsdatabase.klass, "setEnableAutoReconnect", VALUEFUNC(_wrap_nsdatabase_setEnableAutoReconnect), -1);
38457
39346
  rb_define_singleton_method(SwigClassNsdatabase.klass, "setCheckTablePtr", VALUEFUNC(_wrap_nsdatabase_setCheckTablePtr), -1);
38458
39347
  SwigClassNsdatabase.mark = 0;
38459
39348
  SwigClassNsdatabase.trackObjects = 0;
@@ -38902,4 +39791,14 @@ SWIGEXPORT void Init_transactd(void) {
38902
39791
  SwigClassPooledDbManager.mark = 0;
38903
39792
  SwigClassPooledDbManager.destroy = (void (*)(void *)) free_bzs_db_protocol_tdap_client_pooledDbManager;
38904
39793
  SwigClassPooledDbManager.trackObjects = 0;
39794
+
39795
+ SwigClassHaNameResolver.klass = rb_define_class_under(mTransactd, "HaNameResolver", rb_cObject);
39796
+ rb_define_singleton_method(SwigClassHaNameResolver.klass, "start", VALUEFUNC(_wrap_haNameResolver_start), -1);
39797
+ rb_define_singleton_method(SwigClassHaNameResolver.klass, "addPortMap", VALUEFUNC(_wrap_haNameResolver_addPortMap), -1);
39798
+ rb_define_singleton_method(SwigClassHaNameResolver.klass, "clearPortMap", VALUEFUNC(_wrap_haNameResolver_clearPortMap), -1);
39799
+ rb_define_singleton_method(SwigClassHaNameResolver.klass, "stop", VALUEFUNC(_wrap_haNameResolver_stop), -1);
39800
+ rb_define_singleton_method(SwigClassHaNameResolver.klass, "master", VALUEFUNC(_wrap_haNameResolver_master), -1);
39801
+ rb_define_singleton_method(SwigClassHaNameResolver.klass, "slave", VALUEFUNC(_wrap_haNameResolver_slave), -1);
39802
+ SwigClassHaNameResolver.mark = 0;
39803
+ SwigClassHaNameResolver.trackObjects = 0;
38905
39804
  }