transactd 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/BUILD_UNIX-JA +46 -67
- data/BUILD_WIN-JA +106 -63
- data/CMakeLists.txt +40 -15
- data/README +219 -75
- data/README-JA +207 -76
- data/README_ORMSRCGEN +118 -0
- data/README_ORMSRCGEN-JA +115 -0
- data/bin/common/tdclc_32_2_0.dll +0 -0
- data/bin/common/tdclc_64_2_0.dll +0 -0
- data/build/common/check_for_link_iconv.cmake +18 -14
- data/build/common/create_symlink.cmake.in +25 -0
- data/build/common/get_boost_libs.cmake +23 -23
- data/build/common/options.cmake +0 -66
- data/build/common/smart_install.cmake +3 -3
- data/build/common/transactd.rc.in +15 -5
- data/build/common/transactd_cl_common.cmake +37 -18
- data/build/common/transactd_cl_output.cmake +55 -13
- data/build/common/transactd_common.cmake +108 -31
- data/build/swig/php/generate.cmake.in +15 -17
- data/build/swig/php/generate.cmd.in +15 -9
- data/build/swig/php/php.swg +124 -82
- data/build/swig/php/transactd.no_yield.php +4494 -0
- data/build/swig/php/transactd.no_yield.php.git.patch +685 -0
- data/build/swig/php/transactd.no_yield.php.patch +685 -0
- data/build/swig/php/transactd.yield.php +4461 -0
- data/build/swig/php/transactd.yield.php.git.patch +652 -0
- data/build/swig/php/transactd.yield.php.patch +652 -0
- data/build/swig/referencecounter.h +79 -0
- data/build/swig/ruby/ruby.swg +226 -76
- data/build/swig/ruby/threadBlockRegionWrapper.h +71 -0
- data/build/swig/ruby/without_gvl.swg +87 -0
- data/build/swig/tdcl.i +659 -170
- data/build/swig/validatablepointer.h +91 -0
- data/build/tdclc/CMakeLists.txt +49 -34
- data/build/tdclc/{tdclc_64.cbproj → tdclc.cbproj} +65 -20
- data/build/tdclc/tdclc.rc +0 -0
- data/build/tdclcpp/CMakeLists.txt +84 -20
- data/build/tdclcpp/tdclcpp.rc +0 -0
- data/build/tdclcpp/{tdclcpp_bcb_64.cbproj → tdclcpp_bc.cbproj} +168 -44
- data/build/tdclrb/CMakeLists.txt +84 -66
- data/build/tdclrb/bldgem/extconf.rb +28 -3
- data/build/tdclrb/gem/helper.rb +11 -1
- data/build/tdclrb/gem_output.cmake +20 -16
- data/index_ja.html +15 -0
- data/source/bzs/db/IBlobBuffer.h +15 -17
- data/source/bzs/db/blobBuffer.h +186 -140
- data/source/bzs/db/blobStructs.h +37 -37
- data/source/bzs/db/engine/mysql/IReadRecords.h +34 -34
- data/source/bzs/db/engine/mysql/bookmark.h +150 -147
- data/source/bzs/db/engine/mysql/database.cpp +1721 -1526
- data/source/bzs/db/engine/mysql/database.h +608 -370
- data/source/bzs/db/engine/mysql/dbManager.cpp +213 -201
- data/source/bzs/db/engine/mysql/dbManager.h +115 -104
- data/source/bzs/db/engine/mysql/errorMessage.cpp +49 -50
- data/source/bzs/db/engine/mysql/errorMessage.h +25 -26
- data/source/bzs/db/engine/mysql/fieldAccess.h +55 -61
- data/source/bzs/db/engine/mysql/mydebuglog.cpp +326 -292
- data/source/bzs/db/engine/mysql/mydebuglog.h +63 -55
- data/source/bzs/db/engine/mysql/mysqlInternal.h +182 -125
- data/source/bzs/db/engine/mysql/mysqlThd.cpp +121 -121
- data/source/bzs/db/engine/mysql/mysqlThd.h +20 -20
- data/source/bzs/db/engine/mysql/percentageKey.h +241 -228
- data/source/bzs/db/protocol/ICommandExecuter.h +18 -17
- data/source/bzs/db/protocol/hs/hsCommandExecuter.cpp +543 -514
- data/source/bzs/db/protocol/hs/hsCommandExecuter.h +155 -158
- data/source/bzs/db/protocol/tdap/btrDate.cpp +213 -180
- data/source/bzs/db/protocol/tdap/btrDate.h +39 -37
- data/source/bzs/db/protocol/tdap/client/activeTable.cpp +173 -0
- data/source/bzs/db/protocol/tdap/client/activeTable.h +165 -0
- data/source/bzs/db/protocol/tdap/client/activeTableImple.h +370 -0
- data/source/bzs/db/protocol/tdap/client/bulkInsert.h +13 -23
- data/source/bzs/db/protocol/tdap/client/client.cpp +81 -68
- data/source/bzs/db/protocol/tdap/client/client.h +361 -320
- data/source/bzs/db/protocol/tdap/client/connMgr.cpp +17 -22
- data/source/bzs/db/protocol/tdap/client/connMgr.h +17 -19
- data/source/bzs/db/protocol/tdap/client/connectionPool.cpp +243 -0
- data/source/bzs/db/protocol/tdap/client/connectionPool.h +109 -0
- data/source/bzs/db/protocol/tdap/client/database.cpp +327 -219
- data/source/bzs/db/protocol/tdap/client/database.h +141 -118
- data/source/bzs/db/protocol/tdap/client/databaseFactory.cpp +60 -62
- data/source/bzs/db/protocol/tdap/client/databaseManager.h +255 -0
- data/source/bzs/db/protocol/tdap/client/dbDef.cpp +315 -202
- data/source/bzs/db/protocol/tdap/client/dbDef.h +40 -32
- data/source/bzs/db/protocol/tdap/client/dllmain.cpp +390 -371
- data/source/bzs/db/protocol/tdap/client/errorMessage.cpp +148 -56
- data/source/bzs/db/protocol/tdap/client/errorMessage_ja.cpp +149 -57
- data/source/bzs/db/protocol/tdap/client/export.h +35 -0
- data/source/bzs/db/protocol/tdap/client/field.cpp +1985 -0
- data/source/bzs/db/protocol/tdap/client/field.h +393 -0
- data/source/bzs/db/protocol/tdap/client/fieldDDF.cpp +14 -14
- data/source/bzs/db/protocol/tdap/client/fieldDDF.h +11 -14
- data/source/bzs/db/protocol/tdap/client/fieldNameAlias.cpp +123 -0
- data/source/bzs/db/protocol/tdap/client/fieldNameAlias.h +58 -0
- data/source/bzs/db/protocol/tdap/client/fields.h +178 -0
- data/source/bzs/db/protocol/tdap/client/fileDDF.cpp +13 -16
- data/source/bzs/db/protocol/tdap/client/fileDDF.h +11 -17
- data/source/bzs/db/protocol/tdap/client/filter.h +423 -259
- data/source/bzs/db/protocol/tdap/client/groupComp.h +117 -0
- data/source/bzs/db/protocol/tdap/client/groupQuery.cpp +818 -0
- data/source/bzs/db/protocol/tdap/client/groupQuery.h +281 -0
- data/source/bzs/db/protocol/tdap/client/indexDDF.cpp +14 -17
- data/source/bzs/db/protocol/tdap/client/indexDDF.h +11 -14
- data/source/bzs/db/protocol/tdap/client/memRecord.cpp +231 -0
- data/source/bzs/db/protocol/tdap/client/memRecord.h +145 -0
- data/source/bzs/db/protocol/tdap/client/memRecordset.cpp +448 -0
- data/source/bzs/db/protocol/tdap/client/memRecordset.h +159 -0
- data/source/bzs/db/protocol/tdap/client/nsDatabase.cpp +300 -173
- data/source/bzs/db/protocol/tdap/client/nsDatabase.h +53 -36
- data/source/bzs/db/protocol/tdap/client/nsTable.cpp +171 -128
- data/source/bzs/db/protocol/tdap/client/nsTable.h +121 -87
- data/source/bzs/db/protocol/tdap/client/pooledDatabaseManager.h +173 -0
- data/source/bzs/db/protocol/tdap/client/recordset.cpp +209 -0
- data/source/bzs/db/protocol/tdap/client/recordset.h +86 -0
- data/source/bzs/db/protocol/tdap/client/recordsetImple.h +596 -0
- data/source/bzs/db/protocol/tdap/client/request.h +227 -170
- data/source/bzs/db/protocol/tdap/client/serializer.cpp +1288 -0
- data/source/bzs/db/protocol/tdap/client/serializer.h +295 -0
- data/source/bzs/db/protocol/tdap/client/sharedData.cpp +9 -12
- data/source/bzs/db/protocol/tdap/client/sharedData.h +18 -16
- data/source/bzs/db/protocol/tdap/client/sqlBuilder.cpp +494 -473
- data/source/bzs/db/protocol/tdap/client/sqlBuilder.h +51 -53
- data/source/bzs/db/protocol/tdap/client/stringConverter.h +214 -148
- data/source/bzs/db/protocol/tdap/client/table.cpp +929 -1665
- data/source/bzs/db/protocol/tdap/client/table.h +413 -87
- data/source/bzs/db/protocol/tdap/client/trdboostapi.h +642 -534
- data/source/bzs/db/protocol/tdap/client/trdboostapiInternal.h +25 -40
- data/source/bzs/db/protocol/tdap/client/trdclcppautolink.h +11 -15
- data/source/bzs/db/protocol/tdap/client/trdormapi.h +378 -437
- data/source/bzs/db/protocol/tdap/client/trnsctcl.def +1 -1
- data/source/bzs/db/protocol/tdap/fieldComp.h +127 -0
- data/source/bzs/db/protocol/tdap/myDateTime.cpp +352 -345
- data/source/bzs/db/protocol/tdap/mysql/characterset.cpp +75 -78
- data/source/bzs/db/protocol/tdap/mysql/characterset.h +18 -19
- data/source/bzs/db/protocol/tdap/mysql/databaseSchema.cpp +216 -199
- data/source/bzs/db/protocol/tdap/mysql/databaseSchema.h +23 -14
- data/source/bzs/db/protocol/tdap/mysql/debuglog.cpp +354 -314
- data/source/bzs/db/protocol/tdap/mysql/debuglog.h +57 -47
- data/source/bzs/db/protocol/tdap/mysql/recordsetReader.h +905 -739
- data/source/bzs/db/protocol/tdap/mysql/request.h +152 -159
- data/source/bzs/db/protocol/tdap/mysql/tdapCommandExecuter.cpp +1044 -879
- data/source/bzs/db/protocol/tdap/mysql/tdapCommandExecuter.h +87 -81
- data/source/bzs/db/protocol/tdap/tdapRequest.h +162 -130
- data/source/bzs/db/protocol/tdap/tdapSchema.cpp +368 -166
- data/source/bzs/db/protocol/tdap/tdapSchema.h +702 -566
- data/source/bzs/db/protocol/tdap/tdapcapi.h +387 -353
- data/source/bzs/db/transactd/appBuilderImple.h +21 -20
- data/source/bzs/db/transactd/appModule.cpp +350 -98
- data/source/bzs/db/transactd/appModule.h +31 -37
- data/source/bzs/db/transactd/connManager.cpp +138 -135
- data/source/bzs/db/transactd/connManager.h +28 -21
- data/source/bzs/db/transactd/connectionRecord.h +39 -39
- data/source/bzs/db/transactd/transactd.cpp +217 -203
- data/source/bzs/env/boost_bcb_link.h +131 -0
- data/source/bzs/env/compiler.h +136 -79
- data/source/bzs/env/crosscompile.cpp +57 -57
- data/source/bzs/env/crosscompile.h +130 -115
- data/source/bzs/env/fileopen.h +7 -8
- data/source/bzs/env/mbcswchrLinux.cpp +4 -9
- data/source/bzs/env/mbcswchrLinux.h +37 -34
- data/source/bzs/env/tcharMinGW.h +59 -0
- data/source/bzs/env/tstring.h +90 -95
- data/source/bzs/example/changeSchema.cpp +22 -23
- data/source/bzs/example/changeSchema_c.cpp +22 -24
- data/source/bzs/example/connection_pool_c.cpp +49 -104
- data/source/bzs/example/createDatabase.cpp +40 -47
- data/source/bzs/example/createDatabase_c.cpp +38 -43
- data/source/bzs/example/deleteRecords.cpp +10 -15
- data/source/bzs/example/deleteRecords_c.cpp +10 -14
- data/source/bzs/example/dropDatabase.cpp +3 -9
- data/source/bzs/example/dropDatabase_c.cpp +5 -6
- data/source/bzs/example/insertRecords.cpp +37 -29
- data/source/bzs/example/insertRecords_c.cpp +19 -25
- data/source/bzs/example/ormap_c.cpp +621 -0
- data/source/bzs/example/queryData.cpp +371 -0
- data/source/bzs/example/queryData.h +16 -0
- data/source/bzs/example/query_c.cpp +109 -0
- data/source/bzs/example/readRecords.cpp +27 -27
- data/source/bzs/example/readRecords_c.cpp +25 -23
- data/source/bzs/example/updateRecords.cpp +16 -21
- data/source/bzs/example/updateRecords_c.cpp +8 -12
- data/source/bzs/example/update_with_transaction.cpp +21 -24
- data/source/bzs/example/update_with_transaction_c.cpp +12 -15
- data/source/bzs/example/useORMRecord.cpp +177 -0
- data/source/bzs/netsvc/client/tcpClient.cpp +167 -156
- data/source/bzs/netsvc/client/tcpClient.h +541 -489
- data/source/bzs/netsvc/server/IAppModule.h +119 -32
- data/source/bzs/netsvc/server/iserver.h +21 -23
- data/source/bzs/netsvc/server/serverCpt.cpp +421 -391
- data/source/bzs/netsvc/server/serverCpt.h +41 -43
- data/source/bzs/netsvc/server/serverPipe.cpp +580 -565
- data/source/bzs/netsvc/server/serverPipe.h +44 -45
- data/source/bzs/netsvc/server/serverTpool.cpp +333 -303
- data/source/bzs/netsvc/server/serverTpool.h +38 -43
- data/source/bzs/rtl/benchmark.cpp +91 -31
- data/source/bzs/rtl/benchmark.h +76 -22
- data/source/bzs/rtl/datetime.cpp +231 -233
- data/source/bzs/rtl/datetime.h +16 -16
- data/source/bzs/rtl/debuglog.cpp +48 -51
- data/source/bzs/rtl/debuglog.h +55 -44
- data/source/bzs/rtl/exception.h +55 -48
- data/source/bzs/rtl/stl_uty.cpp +27 -28
- data/source/bzs/rtl/stl_uty.h +28 -29
- data/source/bzs/rtl/stringBuffers.cpp +8 -6
- data/source/bzs/rtl/stringBuffers.h +16 -9
- data/source/bzs/rtl/strtrim.cpp +90 -91
- data/source/bzs/rtl/strtrim.h +14 -16
- data/source/bzs/test/tdclatl/bench_query_atl.js +647 -0
- data/source/bzs/test/tdclatl/bench_tdclatl.js +303 -303
- data/source/bzs/test/tdclatl/test_query_atl.js +669 -0
- data/source/bzs/test/tdclphp/bench.php +357 -0
- data/source/bzs/test/tdclphp/transactd_Test.php +907 -303
- data/source/bzs/test/tdclphp/transactd_blob_Test.php +21 -49
- data/source/bzs/test/tdclphp/transactd_datetime_Test.php +41 -75
- data/source/bzs/test/tdclphp/transactd_kanjischema_Test.php +23 -37
- data/source/bzs/test/tdclphp/transactd_pool_Test.php +120 -0
- data/source/bzs/test/tdclrb/bench_tdclcpp.rb +4 -6
- data/source/bzs/test/tdclrb/prepare.rb +15 -12
- data/source/bzs/test/tdclrb/transactd_blob_spec.rb +29 -32
- data/source/bzs/test/tdclrb/transactd_datetime_spec.rb +0 -29
- data/source/bzs/test/tdclrb/transactd_kanjischema_spec.rb +18 -19
- data/source/bzs/test/tdclrb/transactd_pool_spec.rb +107 -0
- data/source/bzs/test/tdclrb/transactd_spec.rb +734 -142
- data/source/bzs/test/transactdBench/query_bench.cpp +156 -0
- data/source/bzs/test/transactdBench/scaling_bench.cpp +265 -0
- data/source/bzs/test/transactdBench/transactdBench.cpp +107 -83
- data/source/bzs/test/transactdBench/transactdBench2.cpp +122 -83
- data/source/bzs/test/transactdBench/workerBase.cpp +5 -0
- data/source/bzs/test/transactdBench/workerBase.h +88 -0
- data/source/bzs/test/transactdBench/workerMySQLImple.h +333 -0
- data/source/bzs/test/transactdBench/workerTransactdImple.h +201 -0
- data/source/bzs/test/trdclengn/test_blob.cpp +121 -73
- data/source/bzs/test/trdclengn/test_trdclengn.cpp +1244 -426
- data/source/global/ormsrcgen/confParam.h +80 -0
- data/source/global/ormsrcgen/fieldName.cpp +77 -0
- data/source/global/ormsrcgen/fieldName.h +43 -0
- data/source/global/ormsrcgen/main.cpp +196 -0
- data/source/global/ormsrcgen/srcgen.cpp +763 -0
- data/source/global/ormsrcgen/srcgen.h +72 -0
- data/source/global/ormsrcgen/template/fieldNameList_sample.txt +2 -0
- data/source/global/ormsrcgen/template/ormDataClass_template.cpp +48 -0
- data/source/global/ormsrcgen/template/ormDataClass_template.h +34 -0
- data/source/global/ormsrcgen/template/ormMapClass_template.cpp +51 -0
- data/source/global/ormsrcgen/template/ormMapClass_template.h +62 -0
- data/source/global/ormsrcgen/template/template.cnf +38 -0
- data/source/global/querystmts/querystmts.cpp +237 -0
- data/source/global/tdclatl/ConnectParams.cpp +77 -0
- data/source/global/tdclatl/ConnectParams.h +70 -0
- data/source/global/tdclatl/Database.cpp +132 -128
- data/source/global/tdclatl/Database.h +60 -49
- data/source/global/tdclatl/DbDef.cpp +68 -64
- data/source/global/tdclatl/DbDef.h +36 -36
- data/source/global/tdclatl/Field.cpp +12 -17
- data/source/global/tdclatl/Field.h +15 -12
- data/source/global/tdclatl/FieldDef.cpp +75 -36
- data/source/global/tdclatl/FieldDef.h +38 -19
- data/source/global/tdclatl/FieldDefs.cpp +74 -0
- data/source/global/tdclatl/FieldDefs.h +56 -0
- data/source/global/tdclatl/FieldNames.cpp +99 -0
- data/source/global/tdclatl/FieldNames.h +66 -0
- data/source/global/tdclatl/Flags.cpp +75 -37
- data/source/global/tdclatl/Flags.h +13 -12
- data/source/global/tdclatl/GroupQuery.cpp +119 -0
- data/source/global/tdclatl/GroupQuery.h +65 -0
- data/source/global/tdclatl/KeyDef.cpp +15 -14
- data/source/global/tdclatl/KeyDef.h +20 -17
- data/source/global/tdclatl/KeySegment.cpp +13 -12
- data/source/global/tdclatl/PooledDbManager.cpp +223 -0
- data/source/global/tdclatl/PooledDbManager.h +76 -0
- data/source/global/tdclatl/QueryBase.cpp +206 -127
- data/source/global/tdclatl/QueryBase.h +55 -59
- data/source/global/tdclatl/Record.cpp +214 -0
- data/source/global/tdclatl/Record.h +96 -0
- data/source/global/tdclatl/Recordset.cpp +278 -0
- data/source/global/tdclatl/Recordset.h +83 -0
- data/source/global/tdclatl/RecordsetQuery.cpp +118 -0
- data/source/global/tdclatl/RecordsetQuery.h +126 -0
- data/source/global/tdclatl/Table.cpp +57 -60
- data/source/global/tdclatl/Table.h +32 -29
- data/source/global/tdclatl/TableDef.cpp +63 -62
- data/source/global/tdclatl/TableDef.h +20 -22
- data/source/global/tdclatl/TdVersion.cpp +3 -3
- data/source/global/tdclatl/TdVersion.h +15 -11
- data/source/global/tdclatl/_IDatabaseEvents_CP.h +99 -92
- data/source/global/tdclatl/activeTable.cpp +355 -0
- data/source/global/tdclatl/activeTable.h +79 -0
- data/source/global/tdclatl/dllmain.cpp +4 -3
- data/source/global/tdclatl/dllmain.h +7 -6
- data/source/global/tdclatl/keySegment.h +22 -18
- data/source/global/tdclatl/resource.h +0 -0
- data/source/global/tdclatl/stdafx.h +6 -4
- data/source/global/tdclatl/targetver.h +0 -1
- data/source/global/tdclatl/tdclatl.cpp +10 -5
- data/source/global/tdclatl/tdclatl.idl +530 -14
- data/source/linux/charsetConvert.h +78 -79
- data/source/linux/linuxTypes.h +9 -12
- data/source/linux/tchar.h +168 -166
- data/transactd.gemspec +24 -16
- metadata +98 -12
- data/bin/common/tdclc_32_1_2.dll +0 -0
- data/bin/common/tdclc_64_1_2.dll +0 -0
- data/build/tdclc/tdclc_32.cbproj +0 -173
- data/build/tdclcpp/tdclcpp_bcb_32.cbproj +0 -232
- data/build/tdclrb/GEM_VERSION +0 -3
- data/source/bzs/db/protocol/tdap/client/filter.cpp +0 -43
- data/source/bzs/example/useORM.cpp +0 -585
data/README
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
Transactd release note
|
2
2
|
===============================================================================
|
3
3
|
Transactd is plugin which adds NoSQL access to MySQL/MariaDB.
|
4
4
|
|
@@ -13,6 +13,8 @@ This document consists of the following topics.
|
|
13
13
|
* Development of applications using Transactd clients
|
14
14
|
* Details of the test program
|
15
15
|
* Details of the benchmark program
|
16
|
+
* C++ O/R mapping source code generator
|
17
|
+
* Query executer
|
16
18
|
* About the license of Transactd Plugin
|
17
19
|
* About the license of Transactd Client
|
18
20
|
* Bug reporting, requests and questions
|
@@ -43,13 +45,13 @@ mysql>show variables like 'version';
|
|
43
45
|
```
|
44
46
|
The names of file to download are formed under following rules:
|
45
47
|
|
46
|
-
* Windows - transactd-[platform]-
|
47
|
-
* Linux - transactd-linux-x86_64-
|
48
|
+
* Windows - transactd-[platform]-2.0.0_[mysql-version].zip
|
49
|
+
* Linux - transactd-linux-x86_64-2.0.0_[mysql-version].tar.gz
|
48
50
|
|
49
51
|
[platform] is win32 or win64, [mysql-version] is mysql-5.x.x or mariadb-5.5.x.
|
50
52
|
For example, the URL for Linux-x86_64bit mysql-5.6.14 is as follows:
|
51
53
|
|
52
|
-
http://www.bizstation.jp/al/transactd/download/transactd-
|
54
|
+
http://www.bizstation.jp/al/transactd/download/transactd-2.0.0/transactd-linux-x86_64-2.0.0_mysql-5.6.14.tar.gz
|
53
55
|
|
54
56
|
You also can download source code archive and build from it.
|
55
57
|
In this case, the source code of MySQL/MariaDB is also required.
|
@@ -72,53 +74,53 @@ administrator authority.
|
|
72
74
|
2. Copy transactd.dll to `[MySQL|MariaDB installed directory]/lib/plugin`.
|
73
75
|
If you don't know where is [MySQL|MariaDB installed directory], start MySQL
|
74
76
|
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
|
-
```
|
77
|
+
```
|
78
|
+
mysql>show variables like 'plugin%';
|
79
|
+
+---------------+----------------------------------------------------+
|
80
|
+
| Variable_name | Value |
|
81
|
+
+---------------+----------------------------------------------------+
|
82
|
+
| plugin_dir | C:\Program Files\MySQL\MySQL Server 5.6\lib\Plugin |
|
83
|
+
+---------------+----------------------------------------------------+
|
84
|
+
```
|
83
85
|
|
84
86
|
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.
|
87
|
+
```
|
88
|
+
mysql>INSTALL PLUGIN transactd SONAME 'transactd.dll';
|
89
|
+
```
|
90
|
+
Installation of Transactd Plugin is finished now.
|
89
91
|
|
90
92
|
|
91
93
|
### Installing on Linux
|
92
94
|
1. Move to the directory where downloaded tar.gz file is.
|
93
|
-
```
|
94
|
-
|
95
|
-
```
|
95
|
+
```
|
96
|
+
cd [TargetFolder]
|
97
|
+
```
|
96
98
|
|
97
99
|
2. Extract the tar.gz file and move into it.
|
98
|
-
```
|
99
|
-
|
100
|
-
|
101
|
-
```
|
100
|
+
```
|
101
|
+
tar zxf transactd-linux-x86_64-2.0.0_mysql-5.6.14.tar.gz
|
102
|
+
cd transactd-linux-x86_64-2.0.0_mysql-5.6.14
|
103
|
+
```
|
102
104
|
|
103
105
|
3. Copy libtransactd.so to `[MySQL|MariaDB installed directory]/lib/plugin`.
|
104
106
|
If you don't know where is [MySQL|MariaDB installed directory], start MySQL
|
105
107
|
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
|
-
|
115
|
-
```
|
108
|
+
```
|
109
|
+
mysql>show variables like 'plugin%';
|
110
|
+
+---------------+-----------------------------+
|
111
|
+
| Variable_name | Value |
|
112
|
+
+---------------+-----------------------------+
|
113
|
+
| plugin_dir | /usr/local/mysql/lib/plugin |
|
114
|
+
+---------------+-----------------------------+
|
115
|
+
mysql>exit
|
116
|
+
cp libtransactd.so /usr/local/mysql/lib/plugin/
|
117
|
+
```
|
116
118
|
|
117
119
|
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.
|
120
|
+
```
|
121
|
+
mysql>INSTALL PLUGIN transactd SONAME 'libtransactd.so';
|
122
|
+
```
|
123
|
+
Installation of Transactd Plugin is finished now.
|
122
124
|
|
123
125
|
|
124
126
|
|
@@ -128,13 +130,13 @@ The Transactd clients are required to access data through Transactd Plugin.
|
|
128
130
|
Download the Transactd client binaries for your platform.
|
129
131
|
The names of file to download are formed under following rules:
|
130
132
|
|
131
|
-
* Windows - transactd-client-[platform]_with_sdk-
|
132
|
-
* Linux - transactd-client-linux-x86_64_with_sdk-
|
133
|
+
* Windows - transactd-client-[platform]_with_sdk-2.0.0.zip
|
134
|
+
* Linux - transactd-client-linux-x86_64_with_sdk-2.0.0.tar.gz
|
133
135
|
|
134
136
|
[platform] is win32 or win64.
|
135
137
|
For example, the URL for Linux-x86_64bit is as follows:
|
136
138
|
|
137
|
-
http://www.bizstation.jp/al/transactd/download/transactd-client/transactd-client-linux-x86_64_with_sdk-
|
139
|
+
http://www.bizstation.jp/al/transactd/download/transactd-client/transactd-client-linux-x86_64_with_sdk-2.0.0.tar.gz
|
138
140
|
|
139
141
|
|
140
142
|
|
@@ -142,35 +144,49 @@ Installing Transactd clients
|
|
142
144
|
-------------------------------------------------------------------------------
|
143
145
|
|
144
146
|
### Installing on Windows
|
145
|
-
1.
|
146
|
-
|
147
|
+
1. Open transactd-client-[platform]_with_sdk-2.0.0.zip from explorer.
|
148
|
+
2. Select the root folder transactd-client-[platform]-with_sdk-2.0.0 and
|
149
|
+
copy to a folder of your choice.
|
150
|
+
3. Run the "install.cmd" in the transactd-client-[platform]_with_sdk-2.0.0 folder.
|
151
|
+
This command adds "transactd-client-[platform]_with_sdk-2.0.0\bin" folder to
|
152
|
+
the system environment variables "PATH".
|
147
153
|
|
148
|
-
|
149
|
-
[custom] on setup type selection window. Installable target compiler is:
|
154
|
+
C++ clients contains the following three files which is placed in bin folder.
|
150
155
|
|
151
|
-
*
|
152
|
-
*
|
156
|
+
* tdclc_xx_[version].dll
|
157
|
+
* tdclcpp_xx_[Compiler]_[version].dll
|
158
|
+
* tdclstmt_xx_[Compiler]_[version].dll
|
153
159
|
|
154
|
-
|
160
|
+
The last two of above files are modules that are compiled with each compilers
|
161
|
+
in order to export the classes of C++. The benchmark programs and test programs
|
162
|
+
are also compiled with each compilers. These files are located in the folder
|
163
|
+
which has the compiler name in the bin folder.
|
164
|
+
You can safely delete useless files if you can identify the compiler which you
|
165
|
+
use to develop.
|
166
|
+
|
167
|
+
There are binaries which is compiled with following 7 compilers:
|
168
|
+
|
169
|
+
* Microsoft Visual studio 2010 (Include ActiveX(COM) client)
|
170
|
+
* Embarcadero C++Builder XE~XE6series
|
155
171
|
|
156
172
|
|
157
173
|
### Installing on Linux
|
158
174
|
1. Move to the directory where downloaded tar.gz file is.
|
159
|
-
```
|
160
|
-
|
161
|
-
```
|
175
|
+
```
|
176
|
+
cd [TargetFolder]
|
177
|
+
```
|
162
178
|
|
163
179
|
2. Extract the tar.gz file and move into it.
|
164
|
-
```
|
165
|
-
|
166
|
-
|
167
|
-
```
|
180
|
+
```
|
181
|
+
tar zxf transactd-client-linux-x86_64_with_sdk-2.0.0.tar.gz
|
182
|
+
cd transactd-client-linux-x86_64_with_sdk-2.0.0
|
183
|
+
```
|
168
184
|
|
169
185
|
3. Run the install script.
|
170
|
-
```
|
171
|
-
|
172
|
-
```
|
173
|
-
Installation of Transactd client is finished now.
|
186
|
+
```
|
187
|
+
./install_client.sh
|
188
|
+
```
|
189
|
+
Installation of Transactd client is finished now.
|
174
190
|
|
175
191
|
|
176
192
|
|
@@ -189,19 +205,22 @@ mysql>CREATE USER root@'192.168.0.0/255.255.255.0';
|
|
189
205
|
This operation allow root user to access database. If the root password is not set,
|
190
206
|
you MUST SET IT.
|
191
207
|
|
208
|
+
|
192
209
|
### Setup root password on Windows
|
193
210
|
Open command prompt and run following command:
|
194
211
|
```
|
195
|
-
|
212
|
+
"C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqladmin" -u root password 'xxxxx'
|
196
213
|
```
|
197
214
|
(Replace xxxxx to your password.)
|
198
215
|
|
216
|
+
|
199
217
|
### Setup root password on Linux
|
200
218
|
```
|
201
|
-
|
219
|
+
/usr/local/mysql/bin/mysqladmin -u root password 'xxxxx'
|
202
220
|
```
|
203
221
|
(Replace xxxxx to your password.)
|
204
222
|
|
223
|
+
|
205
224
|
### Using other name than root
|
206
225
|
It is also possible to register another user name than "root".
|
207
226
|
In order to use another user name, please add the following to the [mysqld] section
|
@@ -217,36 +236,88 @@ Execution of test and benchmark program
|
|
217
236
|
-------------------------------------------------------------------------------
|
218
237
|
See also the detail of the test and the benchmark program topic.
|
219
238
|
|
239
|
+
Test script executes the tests in following order:
|
240
|
+
* test_tdclcpp_xx_xxm_xxx.exe A Multibyte modules test
|
241
|
+
* test_tdclcpp_xx_xxu_xxx.exe A Unicode module test(Windows only)
|
242
|
+
* bench_tdclcpp_xx.exe Benchmark of Insert read update
|
243
|
+
* bench_query_xx.exe Benchmark of aquery
|
244
|
+
* querystmtsxx.exe Test of Query executer
|
245
|
+
|
246
|
+
"querystmtsxx.exe" is executed only if the target host is localhost.
|
247
|
+
|
248
|
+
|
220
249
|
### Executing on Windows
|
221
|
-
1.
|
222
|
-
|
223
|
-
|
250
|
+
1. Move to the client directory.
|
251
|
+
```
|
252
|
+
cd transactd-client-[platform]_with_sdk-2.0.0
|
253
|
+
```
|
254
|
+
|
255
|
+
2. run test:
|
256
|
+
```
|
257
|
+
TestClient.cmd
|
258
|
+
```
|
259
|
+
|
260
|
+
Then you will be asked the host name first, please specify
|
261
|
+
the host name of the Transactd server. "localhost" will be set
|
262
|
+
automatically if you do not specify anything.
|
263
|
+
|
264
|
+
Next, select the number of the compiler to test.
|
265
|
+
Then tests and benchmarks will be executed continuously.
|
266
|
+
|
267
|
+
3. run ActiveX(COM) test:
|
268
|
+
```
|
269
|
+
TestClient_ATL.cmd
|
270
|
+
```
|
271
|
+
|
272
|
+
Then you will be asked the host name first, please specify
|
273
|
+
the host name of the Transactd server. "localhost" will be set
|
274
|
+
automatically if you do not specify anything.
|
275
|
+
|
224
276
|
|
225
277
|
### Executing on Linux
|
226
278
|
1. Move to the client directory.
|
227
|
-
```
|
228
|
-
|
229
|
-
```
|
279
|
+
```
|
280
|
+
cd transactd-client-linux-x86_64_with_sdk-2.0.0
|
281
|
+
```
|
230
282
|
|
231
283
|
2. run test:
|
232
|
-
```
|
233
|
-
./
|
234
|
-
```
|
284
|
+
```
|
285
|
+
./exec_test_all.sh
|
286
|
+
```
|
287
|
+
|
288
|
+
Then you will be asked the host name first, please specify
|
289
|
+
the host name of the Transactd server. "localhost" will be set
|
290
|
+
automatically if you do not specify anything.
|
235
291
|
|
236
292
|
|
237
293
|
|
238
294
|
Development of applications using Transactd clients
|
239
295
|
-------------------------------------------------------------------------------
|
240
|
-
Refer to the
|
241
|
-
using Transactd clients.
|
296
|
+
Refer to the SDK documents to develop applications with Transactd clients.
|
242
297
|
|
243
298
|
http://www.bizstation.jp/ja/transactd/client/sdk/doc/
|
244
299
|
|
300
|
+
There are some simple sample codes in ($installdir)/source/bzs/example.
|
301
|
+
|
302
|
+
You can build them with project files in build/example (Windows) or
|
303
|
+
make_example.sh script (Linux).
|
304
|
+
|
305
|
+
If you compile with the 64Bit version of the Visual C++ 2010 Express edittion,
|
306
|
+
change option to "Windows7.1SDK" from "v100" in
|
307
|
+
[Options] - [platform toolset] - [configuration properties] - [General].
|
308
|
+
|
309
|
+
In the C++ Builder, the boost which has been supplied with the compiler
|
310
|
+
are required. In [Tools] - [Options] - [Environment Options] - [C++ Options] -
|
311
|
+
[directory and path] - [System Include Path], add the following path:
|
312
|
+
|
313
|
+
* For 32Bit: $(CG_BOOST_ROOT)
|
314
|
+
* For 64Bit: $(CG_64_BOOST_ROOT)
|
315
|
+
|
245
316
|
|
246
317
|
|
247
318
|
Details of the test program
|
248
319
|
-------------------------------------------------------------------------------
|
249
|
-
The executable
|
320
|
+
The executable files whose name starts with test_ is test program.
|
250
321
|
|
251
322
|
Please be sure to run test with only an instance. It will fail if test runs two or
|
252
323
|
more instances.
|
@@ -277,8 +348,14 @@ character-set-server=utf8
|
|
277
348
|
|
278
349
|
Details of the benchmark program
|
279
350
|
-------------------------------------------------------------------------------
|
280
|
-
|
281
|
-
|
351
|
+
There are two types in the benchmark program. One of them is the benchmark which
|
352
|
+
read SQL-like query (bench_query_xxx).
|
353
|
+
Another is basic CRUD operations benchmark (bench_tdclcpp_xxx).
|
354
|
+
|
355
|
+
bench_tdclcpp_xxx can be executed in multiple instances, by changing the
|
356
|
+
processNumber in command line arguments.
|
357
|
+
|
358
|
+
The command line options are:
|
282
359
|
```
|
283
360
|
bench_tdclcpp_xxx.exe databaseUri processNumber functionNumber
|
284
361
|
|
@@ -303,9 +380,76 @@ bench_tdclcpp_xxx.exe databaseUri processNumber functionNumber
|
|
303
380
|
| | 8: update in transaction. 20rec x 1000times |
|
304
381
|
|----------------|--------------------------------------------------------|
|
305
382
|
ex)
|
306
|
-
|
383
|
+
bench_tdclcpp_bc200_64u.exe "tdap://localhost/test?dbfile=test.bdf" 0 -1
|
307
384
|
```
|
308
385
|
|
386
|
+
bench_query_xxx measures the speed of getting a similar result with
|
387
|
+
the following SQL:
|
388
|
+
```
|
389
|
+
select
|
390
|
+
`user`.`id`
|
391
|
+
,`user`.`name`
|
392
|
+
,`extention`.`comment`
|
393
|
+
,`groups`.`name` as `group_name`
|
394
|
+
from
|
395
|
+
`user` INNER JOIN `extention`
|
396
|
+
ON `user`.`id` = `extention`.`id`
|
397
|
+
LEFT JOIN `groups`
|
398
|
+
ON `user`.`group` = `groups`.`code`
|
399
|
+
where
|
400
|
+
`user`.`id` > 0 and `user`.`id` <= 15000;
|
401
|
+
|
402
|
+
```
|
403
|
+
The command line options are:
|
404
|
+
```
|
405
|
+
bench_query_xxx createdb hostname type n
|
406
|
+
|----------------|--------------------------------------------------------|
|
407
|
+
| option name | description |
|
408
|
+
|----------------|--------------------------------------------------------|
|
409
|
+
| createdb | Specify 0 or 1 to determine whether or not to create a |
|
410
|
+
| | new test database. The default is 1. |
|
411
|
+
|----------------|--------------------------------------------------------|
|
412
|
+
| hostname | Specify the name or IP address of the location database|
|
413
|
+
| | .The default is localhost. |
|
414
|
+
|----------------|--------------------------------------------------------|
|
415
|
+
| type | Specific numbers, the contents of the query. |
|
416
|
+
| | The default is 15. |
|
417
|
+
| | 1: Read 15,000 records from the user table |
|
418
|
+
| | 3: JOIN the comment field of the extention table on the|
|
419
|
+
| | results of the 1 |
|
420
|
+
| | 7: JOIN the name of the table groups the results of the|
|
421
|
+
| | 3 |
|
422
|
+
| | 5: JOIN the name of the groups on the results of the 1 |
|
423
|
+
| |+8: Display the execution progress of repeat |
|
424
|
+
|----------------|--------------------------------------------------------|
|
425
|
+
| n | Specifies the number of executions of the query |
|
426
|
+
| | specified by type. The default is 100. |
|
427
|
+
|----------------|--------------------------------------------------------|
|
428
|
+
ex)
|
429
|
+
bench_query_xxx 0 localhost 15 100
|
430
|
+
```
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
C++ O/R mapping source code generator
|
435
|
+
-------------------------------------------------------------------------------
|
436
|
+
ormsrcgen (32 | 64) is a source code generator for C++ O/R mapping. You can
|
437
|
+
use this program to generate the model class from the database definition if
|
438
|
+
you want to use the O/R mapping in C++.
|
439
|
+
|
440
|
+
Please refer to the README_ORMSRCGEN.md.
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
Query executer
|
445
|
+
-------------------------------------------------------------------------------
|
446
|
+
querystmts is a program that execute the Transactd query that has been described
|
447
|
+
in XML file. If you pass an XML file to querystmts, it executes the queries and
|
448
|
+
outputs the result to the stdout.
|
449
|
+
|
450
|
+
To make Transactd query XML file(s), we need the querybuilder program.
|
451
|
+
But querybuilder has not been released yet. It will be released soon.
|
452
|
+
|
309
453
|
|
310
454
|
|
311
455
|
About the license of Transactd Plugin
|