transactd 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. checksums.yaml +7 -0
  2. data/BUILD_UNIX-JA +174 -0
  3. data/BUILD_WIN-JA +256 -0
  4. data/CMakeLists.txt +96 -0
  5. data/COPYING +339 -0
  6. data/README +406 -0
  7. data/README-JA +424 -0
  8. data/bin/common/tdclc_32_1_0.dll +0 -0
  9. data/bin/common/tdclc_64_1_0.dll +0 -0
  10. data/build/common/check_for_link_iconv.cmake +73 -0
  11. data/build/common/copyifgreater.cmd +30 -0
  12. data/build/common/copyifgreater.js +290 -0
  13. data/build/common/get_boost_libs.cmake +106 -0
  14. data/build/common/get_ruby_path.cmake +115 -0
  15. data/build/common/options.cmake +127 -0
  16. data/build/common/smart_install.cmake +263 -0
  17. data/build/common/system.cmake +122 -0
  18. data/build/common/transactd.rc.in +52 -0
  19. data/build/common/transactd_cl_common.cmake +101 -0
  20. data/build/common/transactd_cl_output.cmake +93 -0
  21. data/build/common/transactd_common.cmake +237 -0
  22. data/build/common/transactd_required.cmake +28 -0
  23. data/build/swig/ruby/generate.cmake.in +35 -0
  24. data/build/swig/ruby/generate.cmd.in +19 -0
  25. data/build/swig/ruby/ruby.swg +101 -0
  26. data/build/swig/tdcl.i +188 -0
  27. data/build/tdclc/BUILDNUMBER.txt +1 -0
  28. data/build/tdclc/CMakeLists.txt +170 -0
  29. data/build/tdclc/tdclc_32.cbproj +181 -0
  30. data/build/tdclc/tdclc_64.cbproj +205 -0
  31. data/build/tdclcpp/BUILDNUMBER.txt +1 -0
  32. data/build/tdclcpp/CMakeLists.txt +142 -0
  33. data/build/tdclcpp/tdclcpp_bcb_32.cbproj +239 -0
  34. data/build/tdclcpp/tdclcpp_bcb_64.cbproj +304 -0
  35. data/build/tdclrb/BUILDNUMBER.txt +1 -0
  36. data/build/tdclrb/CMakeLists.txt +258 -0
  37. data/build/tdclrb/GEM_VERSION +3 -0
  38. data/build/tdclrb/bldgem/extconf.rb +123 -0
  39. data/build/tdclrb/gem/INSTALLLOG.win32 +9 -0
  40. data/build/tdclrb/gem/Makefile.win32-VS +65 -0
  41. data/build/tdclrb/gem/Makefile.win32-prebuilt +48 -0
  42. data/build/tdclrb/gem/detect.rb +31 -0
  43. data/build/tdclrb/gem/helper.rb +113 -0
  44. data/build/tdclrb/gem/transactd.rb +22 -0
  45. data/build/tdclrb/gem_output.cmake +44 -0
  46. data/source/bzs/db/IBlobBuffer.h +51 -0
  47. data/source/bzs/db/blobBuffer.h +177 -0
  48. data/source/bzs/db/blobStructs.h +85 -0
  49. data/source/bzs/db/engine/mysql/IReadRecords.h +52 -0
  50. data/source/bzs/db/engine/mysql/bookmark.h +195 -0
  51. data/source/bzs/db/engine/mysql/database.cpp +1882 -0
  52. data/source/bzs/db/engine/mysql/database.h +465 -0
  53. data/source/bzs/db/engine/mysql/dbManager.cpp +303 -0
  54. data/source/bzs/db/engine/mysql/dbManager.h +143 -0
  55. data/source/bzs/db/engine/mysql/errorMessage.cpp +75 -0
  56. data/source/bzs/db/engine/mysql/errorMessage.h +43 -0
  57. data/source/bzs/db/engine/mysql/fieldAccess.h +158 -0
  58. data/source/bzs/db/engine/mysql/mydebuglog.cpp +349 -0
  59. data/source/bzs/db/engine/mysql/mydebuglog.h +89 -0
  60. data/source/bzs/db/engine/mysql/mysqlInternal.h +171 -0
  61. data/source/bzs/db/engine/mysql/mysqlThd.cpp +169 -0
  62. data/source/bzs/db/engine/mysql/mysqlThd.h +35 -0
  63. data/source/bzs/db/engine/mysql/percentageKey.h +260 -0
  64. data/source/bzs/db/protocol/ICommandExecuter.h +49 -0
  65. data/source/bzs/db/protocol/hs/hsCommandExecuter.cpp +689 -0
  66. data/source/bzs/db/protocol/hs/hsCommandExecuter.h +228 -0
  67. data/source/bzs/db/protocol/tdap/btrDate.cpp +437 -0
  68. data/source/bzs/db/protocol/tdap/btrDate.h +227 -0
  69. data/source/bzs/db/protocol/tdap/client/bulkInsert.h +127 -0
  70. data/source/bzs/db/protocol/tdap/client/client.cpp +106 -0
  71. data/source/bzs/db/protocol/tdap/client/client.h +292 -0
  72. data/source/bzs/db/protocol/tdap/client/connMgr.cpp +144 -0
  73. data/source/bzs/db/protocol/tdap/client/connMgr.h +82 -0
  74. data/source/bzs/db/protocol/tdap/client/database.cpp +863 -0
  75. data/source/bzs/db/protocol/tdap/client/database.h +118 -0
  76. data/source/bzs/db/protocol/tdap/client/databaseFactory.cpp +100 -0
  77. data/source/bzs/db/protocol/tdap/client/dbDef.cpp +1640 -0
  78. data/source/bzs/db/protocol/tdap/client/dbDef.h +135 -0
  79. data/source/bzs/db/protocol/tdap/client/dllmain.cpp +434 -0
  80. data/source/bzs/db/protocol/tdap/client/errorMessage.cpp +92 -0
  81. data/source/bzs/db/protocol/tdap/client/errorMessage_ja.cpp +98 -0
  82. data/source/bzs/db/protocol/tdap/client/fieldDDF.cpp +174 -0
  83. data/source/bzs/db/protocol/tdap/client/fieldDDF.h +91 -0
  84. data/source/bzs/db/protocol/tdap/client/fileDDF.cpp +140 -0
  85. data/source/bzs/db/protocol/tdap/client/fileDDF.h +86 -0
  86. data/source/bzs/db/protocol/tdap/client/filter.cpp +527 -0
  87. data/source/bzs/db/protocol/tdap/client/filter.h +154 -0
  88. data/source/bzs/db/protocol/tdap/client/indexDDF.cpp +137 -0
  89. data/source/bzs/db/protocol/tdap/client/indexDDF.h +84 -0
  90. data/source/bzs/db/protocol/tdap/client/nsDatabase.cpp +724 -0
  91. data/source/bzs/db/protocol/tdap/client/nsDatabase.h +123 -0
  92. data/source/bzs/db/protocol/tdap/client/nsTable.cpp +899 -0
  93. data/source/bzs/db/protocol/tdap/client/nsTable.h +199 -0
  94. data/source/bzs/db/protocol/tdap/client/request.h +198 -0
  95. data/source/bzs/db/protocol/tdap/client/sharedData.cpp +58 -0
  96. data/source/bzs/db/protocol/tdap/client/sharedData.h +56 -0
  97. data/source/bzs/db/protocol/tdap/client/sqlBuilder.cpp +574 -0
  98. data/source/bzs/db/protocol/tdap/client/sqlBuilder.h +53 -0
  99. data/source/bzs/db/protocol/tdap/client/stringConverter.h +627 -0
  100. data/source/bzs/db/protocol/tdap/client/table.cpp +2613 -0
  101. data/source/bzs/db/protocol/tdap/client/table.h +221 -0
  102. data/source/bzs/db/protocol/tdap/client/trdboostapi.h +1096 -0
  103. data/source/bzs/db/protocol/tdap/client/trdboostapiInternal.h +179 -0
  104. data/source/bzs/db/protocol/tdap/client/trdclcppautolink.h +40 -0
  105. data/source/bzs/db/protocol/tdap/client/trnsctcl.def +11 -0
  106. data/source/bzs/db/protocol/tdap/myDateTime.cpp +500 -0
  107. data/source/bzs/db/protocol/tdap/mysql/characterset.cpp +184 -0
  108. data/source/bzs/db/protocol/tdap/mysql/characterset.h +60 -0
  109. data/source/bzs/db/protocol/tdap/mysql/databaseSchema.cpp +284 -0
  110. data/source/bzs/db/protocol/tdap/mysql/databaseSchema.h +53 -0
  111. data/source/bzs/db/protocol/tdap/mysql/debuglog.cpp +383 -0
  112. data/source/bzs/db/protocol/tdap/mysql/debuglog.h +106 -0
  113. data/source/bzs/db/protocol/tdap/mysql/recordsetReader.h +680 -0
  114. data/source/bzs/db/protocol/tdap/mysql/request.h +202 -0
  115. data/source/bzs/db/protocol/tdap/mysql/tdapCommandExecuter.cpp +1020 -0
  116. data/source/bzs/db/protocol/tdap/mysql/tdapCommandExecuter.h +141 -0
  117. data/source/bzs/db/protocol/tdap/tdapRequest.h +190 -0
  118. data/source/bzs/db/protocol/tdap/tdapSchema.cpp +295 -0
  119. data/source/bzs/db/protocol/tdap/tdapSchema.h +558 -0
  120. data/source/bzs/db/protocol/tdap/tdapcapi.h +423 -0
  121. data/source/bzs/db/transactd/appBuilderImple.h +55 -0
  122. data/source/bzs/db/transactd/appModule.cpp +183 -0
  123. data/source/bzs/db/transactd/appModule.h +80 -0
  124. data/source/bzs/db/transactd/connManager.cpp +201 -0
  125. data/source/bzs/db/transactd/connManager.h +60 -0
  126. data/source/bzs/db/transactd/connectionRecord.h +69 -0
  127. data/source/bzs/db/transactd/transactd.cpp +325 -0
  128. data/source/bzs/env/compiler.h +135 -0
  129. data/source/bzs/env/crosscompile.cpp +130 -0
  130. data/source/bzs/env/crosscompile.h +150 -0
  131. data/source/bzs/env/fileopen.h +36 -0
  132. data/source/bzs/env/mbcswchrLinux.cpp +40 -0
  133. data/source/bzs/env/mbcswchrLinux.h +88 -0
  134. data/source/bzs/env/tstring.h +183 -0
  135. data/source/bzs/example/changeSchema.cpp +117 -0
  136. data/source/bzs/example/changeSchema_c.cpp +78 -0
  137. data/source/bzs/example/connection_pool_c.cpp +171 -0
  138. data/source/bzs/example/createDatabase.cpp +305 -0
  139. data/source/bzs/example/createDatabase_c.cpp +202 -0
  140. data/source/bzs/example/deleteRecords.cpp +87 -0
  141. data/source/bzs/example/deleteRecords_c.cpp +57 -0
  142. data/source/bzs/example/dropDatabase.cpp +59 -0
  143. data/source/bzs/example/dropDatabase_c.cpp +34 -0
  144. data/source/bzs/example/insertRecords.cpp +212 -0
  145. data/source/bzs/example/insertRecords_c.cpp +153 -0
  146. data/source/bzs/example/readRecords.cpp +141 -0
  147. data/source/bzs/example/readRecords_c.cpp +107 -0
  148. data/source/bzs/example/updateRecords.cpp +99 -0
  149. data/source/bzs/example/updateRecords_c.cpp +71 -0
  150. data/source/bzs/example/update_with_transaction.cpp +104 -0
  151. data/source/bzs/example/update_with_transaction_c.cpp +80 -0
  152. data/source/bzs/netsvc/client/tcpClient.cpp +226 -0
  153. data/source/bzs/netsvc/client/tcpClient.h +489 -0
  154. data/source/bzs/netsvc/server/IAppModule.h +94 -0
  155. data/source/bzs/netsvc/server/iserver.h +65 -0
  156. data/source/bzs/netsvc/server/serverCpt.cpp +522 -0
  157. data/source/bzs/netsvc/server/serverCpt.h +88 -0
  158. data/source/bzs/netsvc/server/serverPipe.cpp +705 -0
  159. data/source/bzs/netsvc/server/serverPipe.h +96 -0
  160. data/source/bzs/netsvc/server/serverTpool.cpp +416 -0
  161. data/source/bzs/netsvc/server/serverTpool.h +84 -0
  162. data/source/bzs/rtl/benchmark.cpp +96 -0
  163. data/source/bzs/rtl/benchmark.h +65 -0
  164. data/source/bzs/rtl/datetime.cpp +375 -0
  165. data/source/bzs/rtl/datetime.h +53 -0
  166. data/source/bzs/rtl/debuglog.cpp +106 -0
  167. data/source/bzs/rtl/debuglog.h +97 -0
  168. data/source/bzs/rtl/exception.h +116 -0
  169. data/source/bzs/rtl/stl_uty.cpp +35 -0
  170. data/source/bzs/rtl/stl_uty.h +29 -0
  171. data/source/bzs/rtl/stringBuffers.cpp +101 -0
  172. data/source/bzs/rtl/stringBuffers.h +58 -0
  173. data/source/bzs/rtl/strtrim.cpp +135 -0
  174. data/source/bzs/rtl/strtrim.h +46 -0
  175. data/source/bzs/test/tdclatl/bench_tdclatl.js +445 -0
  176. data/source/bzs/test/tdclrb/bench_tdclcpp.rb +375 -0
  177. data/source/bzs/test/tdclrb/prepare.rb +226 -0
  178. data/source/bzs/test/tdclrb/transactd_datetime_spec.rb +172 -0
  179. data/source/bzs/test/tdclrb/transactd_kanjischema_spec.rb +208 -0
  180. data/source/bzs/test/tdclrb/transactd_spec.rb +1536 -0
  181. data/source/bzs/test/transactdBench/transactdBench.cpp +430 -0
  182. data/source/bzs/test/transactdBench/transactdBench2.cpp +342 -0
  183. data/source/bzs/test/trdclengn/test_trdclengn.cpp +2030 -0
  184. data/source/global/tdclatl/Database.cpp +503 -0
  185. data/source/global/tdclatl/Database.h +139 -0
  186. data/source/global/tdclatl/DbDef.cpp +242 -0
  187. data/source/global/tdclatl/DbDef.h +79 -0
  188. data/source/global/tdclatl/Field.cpp +92 -0
  189. data/source/global/tdclatl/Field.h +59 -0
  190. data/source/global/tdclatl/FieldDef.cpp +238 -0
  191. data/source/global/tdclatl/FieldDef.h +87 -0
  192. data/source/global/tdclatl/Flags.cpp +111 -0
  193. data/source/global/tdclatl/Flags.h +55 -0
  194. data/source/global/tdclatl/KeyDef.cpp +51 -0
  195. data/source/global/tdclatl/KeyDef.h +55 -0
  196. data/source/global/tdclatl/KeySegment.cpp +55 -0
  197. data/source/global/tdclatl/Table.cpp +600 -0
  198. data/source/global/tdclatl/Table.h +144 -0
  199. data/source/global/tdclatl/TableDef.cpp +291 -0
  200. data/source/global/tdclatl/TableDef.h +86 -0
  201. data/source/global/tdclatl/TdVersion.cpp +74 -0
  202. data/source/global/tdclatl/TdVersion.h +54 -0
  203. data/source/global/tdclatl/_IDatabaseEvents_CP.h +113 -0
  204. data/source/global/tdclatl/dllmain.cpp +30 -0
  205. data/source/global/tdclatl/dllmain.h +27 -0
  206. data/source/global/tdclatl/keySegment.h +57 -0
  207. data/source/global/tdclatl/resource.h +0 -0
  208. data/source/global/tdclatl/stdafx.cpp +2 -0
  209. data/source/global/tdclatl/stdafx.h +25 -0
  210. data/source/global/tdclatl/targetver.h +4 -0
  211. data/source/global/tdclatl/tdclatl.cpp +68 -0
  212. data/source/global/tdclatl/tdclatl.def +10 -0
  213. data/source/global/tdclatl/tdclatl.idl +1035 -0
  214. data/source/linux/charsetConvert.h +112 -0
  215. data/source/linux/linuxTypes.h +33 -0
  216. data/source/linux/tchar.h +428 -0
  217. data/transactd.gemspec +97 -0
  218. metadata +267 -0
data/README ADDED
@@ -0,0 +1,406 @@
1
+ Transactd release note
2
+ ===============================================================================
3
+ Transactd is plugin which adds NoSQL access to MySQL/MariaDB.
4
+
5
+ This document consists of the following topics.
6
+ * Introduction
7
+ * Preparation of Transactd Plugin binary
8
+ * Installing Transactd Plugin
9
+ * Preparation of Transactd clients binaries
10
+ * Installing Transactd clients
11
+ * Setting host permission to access Transactd
12
+ * Execution of test and benchmark program
13
+ * Development of applications using Transactd clients
14
+ * Details of the test program
15
+ * Details of the benchmark program
16
+ * About the license of Transactd Plugin
17
+ * About the license of Transactd Client
18
+ * Bug reporting, requests and questions
19
+ * Copyright of related products
20
+
21
+
22
+
23
+ Introduction
24
+ -------------------------------------------------------------------------------
25
+ Transactd consists of the server side plugin and the client side modules.
26
+ The server side plugin is called "Transactd Plugin" and the client side module
27
+ is called "Transactd clients".
28
+
29
+
30
+
31
+ Preparation of Transactd Plugin binary
32
+ -------------------------------------------------------------------------------
33
+ Check the version of your MySQL/MariaDB and download suitable Transactd Plugin
34
+ binary. If you don't know what is version, start MySQL Command Line client and
35
+ run following command:
36
+ ```
37
+ mysql>show variables like 'version';
38
+ +---------------+--------+
39
+ | Variable_name | Value |
40
+ +---------------+--------+
41
+ | version | 5.6.14 |
42
+ +---------------+--------+
43
+ ```
44
+ The names of file to download are formed under following rules:
45
+
46
+ * Windows - transactd-[platform]-1.1.0_[mysql-version].zip
47
+ * Linux - transactd-linux-x86_64-1.1.0_[mysql-version].tar.gz
48
+
49
+ [platform] is win32 or win64, [mysql-version] is mysql-5.x.x or mariadb-5.5.x.
50
+ For example, the URL for Linux-x86_64bit mysql-5.6.14 is as follows:
51
+
52
+ http://www.bizstation.jp/al/transactd/download/transactd-1.1.0/transactd-linux-x86_64-1.1.0_mysql-5.6.14.tar.gz
53
+
54
+ You also can download source code archive and build from it.
55
+ In this case, the source code of MySQL/MariaDB is also required.
56
+
57
+ See BUILD_WIN-{lang}.md or BUILD_UNIX-{lang}.md in the source code archive
58
+ for how to build.
59
+
60
+
61
+
62
+ Installing Transactd Plugin
63
+ -------------------------------------------------------------------------------
64
+ Transactd Plugin can be installed by copying file, without adding any change to
65
+ the binary of MySQL/MariaDB.
66
+ You don't have to stop MySQL/MariaDB to install the plugin. It requires
67
+ administrator authority.
68
+
69
+ ### Installing on Windows
70
+ 1. Open the zip file downloaded in Explorer. Check if transactd.dll is exists.
71
+
72
+ 2. Copy transactd.dll to `[MySQL|MariaDB installed directory]/lib/plugin`.
73
+ If you don't know where is [MySQL|MariaDB installed directory], start MySQL
74
+ Command Line client and run following command:
75
+ ```
76
+ mysql>show variables like 'plugin%';
77
+ +---------------+----------------------------------------------------+
78
+ | Variable_name | Value |
79
+ +---------------+----------------------------------------------------+
80
+ | plugin_dir | C:\Program Files\MySQL\MySQL Server 5.6\lib\Plugin |
81
+ +---------------+----------------------------------------------------+
82
+ ```
83
+
84
+ 3. Start MySQL Command Line client and run following command:
85
+ ```
86
+ mysql>INSTALL PLUGIN transactd SONAME 'transactd.dll';
87
+ ```
88
+ Installation of Transactd Plugin is finished now.
89
+
90
+
91
+ ### Installing on Linux
92
+ 1. Move to the directory where downloaded tar.gz file is.
93
+ ```
94
+ shell>cd [TargetFolder]
95
+ ```
96
+
97
+ 2. Extract the tar.gz file and move into it.
98
+ ```
99
+ shell>tar zxf transactd-linux-x86_64-1.1.0_mysql-5.6.14.tar.gz
100
+ shell>cd transactd-linux-x86_64-1.1.0_mysql-5.6.14
101
+ ```
102
+
103
+ 3. Copy libtransactd.so to `[MySQL|MariaDB installed directory]/lib/plugin`.
104
+ If you don't know where is [MySQL|MariaDB installed directory], start MySQL
105
+ Command Line client and run following command:
106
+ ```
107
+ mysql>show variables like 'plugin%';
108
+ +---------------+-----------------------------+
109
+ | Variable_name | Value |
110
+ +---------------+-----------------------------+
111
+ | plugin_dir | /usr/local/mysql/lib/plugin |
112
+ +---------------+-----------------------------+
113
+ mysql>exit
114
+ shell>cp libtransactd.so /usr/local/mysql/lib/plugin/
115
+ ```
116
+
117
+ 4. Start mysql client and run following command:
118
+ ```
119
+ mysql>INSTALL PLUGIN transactd SONAME 'libtransactd.so';
120
+ ```
121
+ Installation of Transactd Plugin is finished now.
122
+
123
+
124
+
125
+ Preparation of Transactd client binaries
126
+ -------------------------------------------------------------------------------
127
+ The Transactd clients are required to access data through Transactd Plugin.
128
+ Download the Transactd client binaries for your platform.
129
+ The names of file to download are formed under following rules:
130
+
131
+ * Windows - transactd-client-[platform]_with_sdk-1.1.0.msi
132
+ * Linux - transactd-client-linux-x86_64_with_sdk-1.1.0.tar.gz
133
+
134
+ [platform] is win32 or win64.
135
+ For example, the URL for Linux-x86_64bit is as follows:
136
+
137
+ http://www.bizstation.jp/al/transactd/download/transactd-client/transactd-client-linux-x86_64_with_sdk-1.1.0.tar.gz
138
+
139
+
140
+
141
+ Installing Transactd clients
142
+ -------------------------------------------------------------------------------
143
+
144
+ ### Installing on Windows
145
+ 1. Double click transactd-client-[platform]_with_sdk-1.1.0.msi will start
146
+ installation by Windows installer.
147
+
148
+ If you want to install the clients for Embarcadero C++Builder XE series, select
149
+ [custom] on setup type selection window. Installable target compiler is:
150
+
151
+ * Microsoft Visual studio 2010 (Include ActiveX(COM) client)
152
+ * Embarcadero C++Builder XE series
153
+
154
+ For Microsoft Visual studio is certainly installed.
155
+
156
+
157
+ ### Installing on Linux
158
+ 1. Move to the directory where downloaded tar.gz file is.
159
+ ```
160
+ shell>cd [TargetFolder]
161
+ ```
162
+
163
+ 2. Extract the tar.gz file and move into it.
164
+ ```
165
+ shell>tar zxf transactd-client-linux-x86_64_with_sdk-1.1.0.tar.gz
166
+ shell>cd transactd-client-linux-x86_64_with_sdk-1.1.0
167
+ ```
168
+
169
+ 3. Run the install script.
170
+ ```
171
+ shell>./install_client.sh
172
+ ```
173
+ Installation of Transactd client is finished now.
174
+
175
+
176
+
177
+ Setting host permission to access Transactd
178
+ -------------------------------------------------------------------------------
179
+ To access data through Transactd, register root@[host] to user table of MySQL.
180
+
181
+ * `root@127.0.0.1` allows access from a local machine.
182
+ * `root@192.168.0.3` allows access from host 192.168.0.3.
183
+ * `root@192.168.0.0/255.255.255.0` allows access from host 192.168.0.x.
184
+
185
+ Start MySQL Command Line client and run following commands to register hosts.
186
+ ```
187
+ mysql>CREATE USER root@'192.168.0.0/255.255.255.0';
188
+ ```
189
+ This operation allow root user to access database. If the root password is not set,
190
+ you MUST SET IT.
191
+
192
+ ### Setup root password on Windows
193
+ Open command prompt and run following command:
194
+ ```
195
+ shell>"C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqladmin" -u root password 'xxxxx'
196
+ ```
197
+ (Replace xxxxx to your password.)
198
+
199
+ ### Setup root password on Linux
200
+ ```
201
+ shell>/usr/local/mysql/bin/mysqladmin -u root password 'xxxxx'
202
+ ```
203
+ (Replace xxxxx to your password.)
204
+
205
+ ### Using other name than root
206
+ It is also possible to register another user name than "root".
207
+ In order to use another user name, please add the following to the [mysqld] section
208
+ of my.cnf or my.ini.
209
+ ```
210
+ loose-transactd_hostcheck_username = yourUserName
211
+ ```
212
+ Replace yourUserName to an actual user name.
213
+
214
+
215
+
216
+ Execution of test and benchmark program
217
+ -------------------------------------------------------------------------------
218
+ See also the detail of the test and the benchmark program topic.
219
+
220
+ ### Executing on Windows
221
+ 1. Click [Start menu]-[All programs]-[BizStation]-[Transactd Client]-
222
+ [Test (compiler)(charset)] or [Benchmark local (compiler)].
223
+ (compiler) is VC100 or BCB. (charset) is Unicode or Multibyte.
224
+
225
+ ### Executing on Linux
226
+ 1. Move to the client directory.
227
+ ```
228
+ shell>cd transactd-client-linux-x86_64_with_sdk-1.1.0
229
+ ```
230
+
231
+ 2. run test:
232
+ ```
233
+ ./exec_test_local.sh
234
+ ```
235
+
236
+
237
+
238
+ Development of applications using Transactd clients
239
+ -------------------------------------------------------------------------------
240
+ Refer to the following SDK documents for development of the applications
241
+ using Transactd clients.
242
+
243
+ http://www.bizstation.jp/ja/transactd/client/sdk/doc/
244
+
245
+
246
+
247
+ Details of the test program
248
+ -------------------------------------------------------------------------------
249
+ The executable file which starts with test_ is a Test program.
250
+
251
+ Please be sure to run test with only an instance. It will fail if test runs two or
252
+ more instances.
253
+ If others access to test database during test runs, fail to drop database and can't
254
+ release database.
255
+ In such a case, reboot a server or run following command in MySQL command line client
256
+ to drop a database.
257
+ ```
258
+ mysql>drop database test;
259
+ ```
260
+
261
+ If `-- showprogress=yes` is passed, it shows progress like:
262
+ ```
263
+ 0% 10 20 30 40 50 60 70 80 90 100%
264
+ |----|----|----|----|----|----|----|----|----|----|
265
+ ************
266
+ ```
267
+
268
+ Using `-- host=xxxxx` can specify host.
269
+ The test using Japanese database name, table name and field name.
270
+ To pass this test, set `character-set-server` as cp932 or utf8 in my.cnf.
271
+ ```
272
+ [mysqld]
273
+ character-set-server=utf8
274
+ ```
275
+
276
+
277
+
278
+ Details of the benchmark program
279
+ -------------------------------------------------------------------------------
280
+ By changing processNumber argument, the benchmark program can be ran two or more
281
+ instances simultaneously, and can measure them. The command line option is:
282
+ ```
283
+ bench_tdclcpp_xxx.exe databaseUri processNumber functionNumber
284
+
285
+ |----------------|--------------------------------------------------------|
286
+ | option name | description |
287
+ |----------------|--------------------------------------------------------|
288
+ | databaseUri | URI of a database. |
289
+ |----------------|--------------------------------------------------------|
290
+ | processNumber | Specify different number to run two or more instances. |
291
+ |----------------|--------------------------------------------------------|
292
+ | functionNumber | Specify the operation number. |
293
+ | | The operations: |
294
+ | | -1: all of following |
295
+ | | 0: Insert |
296
+ | | 1: Insert in transaction. 20rec x 1000times |
297
+ | | 2: Insert by bulkmode. 20rec x 1000times |
298
+ | | 3: read each record |
299
+ | | 4: read each record with snapshot |
300
+ | | 5: read range. 20rec x 1000times |
301
+ | | 6: read range with snapshot . 20rec x 1000times |
302
+ | | 7: update |
303
+ | | 8: update in transaction. 20rec x 1000times |
304
+ |----------------|--------------------------------------------------------|
305
+ ex)
306
+ shell>bench_tdclcpp_c_bcb_64.exe "tdap://localhost/test?dbfile=test.bdf" 0 -1
307
+ ```
308
+
309
+
310
+
311
+ About the license of Transactd Plugin
312
+ -------------------------------------------------------------------------------
313
+ According to the license of MySQL/MariaDB, Transactd Plugin can be used under
314
+ General Public License (GPLv2). The license information is in COPYING.
315
+
316
+
317
+
318
+ About the license of Transactd clients
319
+ -------------------------------------------------------------------------------
320
+ You can select the license of Transactd clients from General Public License
321
+ (GPLv2) or commercial license.
322
+
323
+ * The license information of GPLv2 is in COPYING file.
324
+ * You can examine a commercial license which not restricted by GPLv2 if wants.
325
+ * Please see BizStation website about the details of licenses.
326
+ [BizStation website](http://www.bizstation.jp/en/transactd/support/)
327
+
328
+ See also "Transactd clients OSS Exception" for OSS projects not subject to GPLv2.
329
+ - [Transactd clients OSS Exception](http://www.bizstation.jp/en/transactd/support/ossex.html)
330
+
331
+
332
+
333
+ Bug reporting, requests and questions
334
+ -------------------------------------------------------------------------------
335
+ * If you find any bugs or if you have any requests, please send it to Issues
336
+ tracker on github. It requires github account(free).
337
+ - [Transactd Issues](https://github.com/bizstation/transactd/issues)
338
+ * If you have any questions, please see our website or send to Issues tracker
339
+ on github above.
340
+ - [Transactd Documents](http://www.bizstation.jp/ja/transactd/documents/)
341
+ - [Transactd License/Support](http://www.bizstation.jp/ja/transactd/support/)
342
+
343
+
344
+
345
+ ********************************************************************************
346
+
347
+ The copyrights of products related to Transactd Plugin and clients are below.
348
+
349
+ ********************************************************************************
350
+ The following software may be included in Transactd Plugin and Client:
351
+ Boost Software License - Version 1.0 - August 17th, 2003
352
+
353
+ Permission is hereby granted, free of charge, to any person or organization
354
+ obtaining a copy of the software and accompanying documentation covered by
355
+ this license (the "Software") to use, reproduce, display, distribute,
356
+ execute, and transmit the Software, and to prepare derivative works of the
357
+ Software, and to permit third-parties to whom the Software is furnished to
358
+ do so, all subject to the following:
359
+
360
+ The copyright notices in the Software and this entire statement, including
361
+ the above license grant, this restriction and the following disclaimer,
362
+ must be included in all copies of the Software, in whole or in part, and
363
+ all derivative works of the Software, unless such copies or derivative
364
+ works are solely in the form of machine-executable object code generated by
365
+ a source language processor.
366
+
367
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
368
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
369
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
370
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
371
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
372
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
373
+ DEALINGS IN THE SOFTWARE.
374
+
375
+
376
+ ********************************************************************************
377
+ The following software may be included in Transactd Plugin:
378
+ HandlerSocket plugin for MySQL
379
+
380
+ Copyright (c) 2010 DeNA Co.,Ltd.
381
+ All rights reserved.
382
+
383
+ Redistribution and use in source and binary forms, with or without
384
+ modification, are permitted provided that the following conditions are met:
385
+
386
+ * Redistributions of source code must retain the above copyright
387
+ notice, this list of conditions and the following disclaimer.
388
+ * Redistributions in binary form must reproduce the above copyright
389
+ notice, this list of conditions and the following disclaimer in the
390
+ documentation and/or other materials provided with the distribution.
391
+ * Neither the name of DeNA Co.,Ltd. nor the names of its contributors
392
+ may be used to endorse or promote products derived from this software
393
+ without specific prior written permission.
394
+
395
+ THIS SOFTWARE IS PROVIDED BY DeNA Co.,Ltd. "AS IS" AND ANY EXPRESS OR
396
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
397
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
398
+ EVENT SHALL DeNA Co.,Ltd. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
399
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
400
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
401
+ OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
402
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
403
+ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
404
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
405
+
406
+ ********************************************************************************