transactd 2.3.0-x86-mswin32-100 → 2.4.0-x86-mswin32-100
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 → BUILD_UNIX-JA.md} +6 -6
- data/{BUILD_WIN-JA → BUILD_WIN-JA.md} +0 -0
- data/CMakeLists.txt +20 -15
- data/{README-JA → README-JA.md} +23 -23
- data/{README → README.md} +22 -24
- data/{README_ORMSRCGEN-JA → README_ORMSRCGEN-JA.md} +0 -0
- data/{README_ORMSRCGEN → README_ORMSRCGEN.md} +0 -0
- data/RELEASE_NOTE +120 -0
- data/RELEASE_NOTE-JA +110 -0
- data/bin/1.9/transactd.so +0 -0
- data/bin/2.0/transactd.so +0 -0
- data/bin/2.1/transactd.so +0 -0
- data/bin/2.2/transactd.so +0 -0
- data/bin/common/tdclc_32_2_4.dll +0 -0
- data/bin/common/tdclcpp_vc100_32mr_2_4.dll +0 -0
- data/build/tdclrb/bldgem/extconf.rb +5 -1
- data/source/bzs/test/tdclrb/transactd_spec.rb +74 -2
- metadata +10 -10
- data/bin/common/tdclc_32_2_3.dll +0 -0
- data/bin/common/tdclcpp_vc100_32mr_2_3.dll +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3249ce6376fde075c027525086893dead8d6075b
|
4
|
+
data.tar.gz: c60dfcb1ae0ad14844faa635efbe03f3b019b4d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a99fe365c466d629a1022f84cfeee1d1f777bdba644b4188d5951cd884d96cd28df9bea69e6160fcb27a3e5f94289b079e077a4cd99550a470b1d1e2ec11fee9
|
7
|
+
data.tar.gz: 251d5dbe74a966a8ab355c320f16419109122959df711f27c97ca9c7ec626618cf0753850f72dd8b96379d57be3c7b089b34af22c3bf97299fde0990b0074ba0
|
@@ -73,10 +73,10 @@ tar xzf mysql-5.6.20.tar.gz
|
|
73
73
|
pluginディレクトリに展開します。
|
74
74
|
```
|
75
75
|
cd ~
|
76
|
-
wget http://www.bizstation.jp/al/transactd/download/transactd-2.
|
76
|
+
wget http://www.bizstation.jp/al/transactd/download/transactd-2.4.0/transactd-source-2.4.0.zip
|
77
77
|
#Mac OS Xでは
|
78
|
-
#curl -O http://www.bizstation.jp/al/transactd/download/transactd-2.
|
79
|
-
unzip -q transactd-source-2.
|
78
|
+
#curl -O http://www.bizstation.jp/al/transactd/download/transactd-2.4.0/transactd-source-2.4.0.zip
|
79
|
+
unzip -q transactd-source-2.4.0.zip -d transactd
|
80
80
|
mv transactd ~/mysql-5.6.20/plugin/
|
81
81
|
```
|
82
82
|
|
@@ -121,10 +121,10 @@ make install
|
|
121
121
|
からソースコードをダウンロードします。
|
122
122
|
```
|
123
123
|
cd ~
|
124
|
-
wget http://www.bizstation.jp/al/transactd/download/transactd-2.
|
124
|
+
wget http://www.bizstation.jp/al/transactd/download/transactd-2.4.0/transactd-source-2.4.0.zip
|
125
125
|
#Mac OS Xでは
|
126
|
-
#curl curl -O http://www.bizstation.jp/al/transactd/download/transactd-2.
|
127
|
-
unzip -q transactd-source-2.
|
126
|
+
#curl curl -O http://www.bizstation.jp/al/transactd/download/transactd-2.4.0/transactd-source-2.4.0.zip
|
127
|
+
unzip -q transactd-source-2.4.0.zip -d transactd
|
128
128
|
```
|
129
129
|
|
130
130
|
### 5-2 CMakeの実行
|
File without changes
|
data/CMakeLists.txt
CHANGED
@@ -43,6 +43,7 @@ option(TRANSACTD_PHP_ZTS "Add ZTS flag for build Transactd client PHP ext
|
|
43
43
|
|
44
44
|
# The following options are set automatically if not specified.
|
45
45
|
# Usually you do not have to set these values.
|
46
|
+
option(TRANSACTD_WITHOUT_C_CPP_CLIENTS "Not build C/C++ clients" OFF)
|
46
47
|
# options for Ruby client
|
47
48
|
set(TRANSACTD_RUBY_GEM_ROOT_PATH "" CACHE STRING "Transactd gem root path")
|
48
49
|
set(TRANSACTD_RUBY_EXECUTABLE_PATH "" CACHE STRING "Ruby executable path")
|
@@ -120,15 +121,17 @@ if(TRANSACTD_RUBY_GEM)
|
|
120
121
|
set(TDCL_CPP_CHARSET m)
|
121
122
|
project(tdcl)
|
122
123
|
tdcl_set_compiler_flags()
|
123
|
-
if(
|
124
|
-
if(
|
125
|
-
|
126
|
-
|
124
|
+
if(NOT TRANSACTD_WITHOUT_C_CPP_CLIENTS)
|
125
|
+
if(WIN32)
|
126
|
+
if(MSVC)
|
127
|
+
transactd_copy_subdir("${TRANSACTD_ROOT}" tdclcpp tdclcppmr)
|
128
|
+
subdirs("build/tdclcppmr")
|
129
|
+
endif()
|
130
|
+
else()
|
131
|
+
transactd_copy_subdir("${TRANSACTD_ROOT}" tdclcpp tdclcppm)
|
132
|
+
subdirs("build/tdclc")
|
133
|
+
subdirs("build/tdclcppm")
|
127
134
|
endif()
|
128
|
-
else()
|
129
|
-
transactd_copy_subdir("${TRANSACTD_ROOT}" tdclcpp tdclcppm)
|
130
|
-
subdirs("build/tdclc")
|
131
|
-
subdirs("build/tdclcppm")
|
132
135
|
endif()
|
133
136
|
subdirs("build/tdclrb")
|
134
137
|
endif()
|
@@ -142,13 +145,15 @@ if(TRANSACTD_PHP)
|
|
142
145
|
set(TDCL_CPP_CHARSET m)
|
143
146
|
project(tdcl)
|
144
147
|
tdcl_set_compiler_flags()
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
148
|
+
if(NOT TRANSACTD_WITHOUT_C_CPP_CLIENTS)
|
149
|
+
subdirs("build/tdclc")
|
150
|
+
if(MSVC)
|
151
|
+
transactd_copy_subdir("${TRANSACTD_ROOT}" tdclcpp tdclcppmr)
|
152
|
+
subdirs("build/tdclcppmr")
|
153
|
+
else()
|
154
|
+
transactd_copy_subdir("${TRANSACTD_ROOT}" tdclcpp tdclcppm)
|
155
|
+
subdirs("build/tdclcppm")
|
156
|
+
endif()
|
152
157
|
endif()
|
153
158
|
subdirs("build/tdclphp")
|
154
159
|
endif()
|
data/{README-JA → README-JA.md}
RENAMED
@@ -47,14 +47,14 @@ show variables like 'version';
|
|
47
47
|
```
|
48
48
|
ダウンロードするファイルは
|
49
49
|
|
50
|
-
* Windowsの場合 transactd-[platform]-2.
|
51
|
-
* Linuxの場合 transactd-linux-x86_64-2.
|
50
|
+
* Windowsの場合 transactd-[platform]-2.4.0_[mysql-version].zip
|
51
|
+
* Linuxの場合 transactd-linux-x86_64-2.4.0_[mysql-version].tar.gz
|
52
52
|
|
53
53
|
といった形式です。
|
54
54
|
[platform]はwin32またはwin64、[mysql-version]はmysql-5.x.xまたはmariadb-5.5.xです。
|
55
55
|
たとえば、Linux-x86_64bit mysql-5.6.14用の完全なURLは以下の通りです。
|
56
56
|
|
57
|
-
http://www.bizstation.jp/al/transactd/download/transactd-2.
|
57
|
+
http://www.bizstation.jp/al/transactd/download/transactd-2.4.0/transactd-linux-x86_64-2.4.0_mysql-5.6.14.tar.gz
|
58
58
|
|
59
59
|
また、ソースをダウンロードしてビルドすることもできます。その場合は、
|
60
60
|
MySQL/MariaDBのソースコードも必要です。ビルド方法はソースコード内の
|
@@ -99,8 +99,8 @@ MySQL/MariaDBのバイナリに変更を加えることなく、所定の位置
|
|
99
99
|
|
100
100
|
2. ダウンロードしたtar.gzを解凍し、解凍したフォルダに移動します。
|
101
101
|
```
|
102
|
-
tar zxf transactd-linux-x86_64-2.
|
103
|
-
cd transactd-linux-x86_64-2.
|
102
|
+
tar zxf transactd-linux-x86_64-2.4.0_mysql-5.6.14.tar.gz
|
103
|
+
cd transactd-linux-x86_64-2.4.0_mysql-5.6.14
|
104
104
|
```
|
105
105
|
|
106
106
|
3. [MySQL|MariaDBインストールフォルダ]/lib/pluginに、libtransactd.soをコピー
|
@@ -131,13 +131,13 @@ Transactd Pluginを介してデータにアクセスするにはTransactdクラ
|
|
131
131
|
プラットフォームに合ったビルド済Transactdクライアントをダウンロードします。
|
132
132
|
ダウンロードするファイルは
|
133
133
|
|
134
|
-
* Windowsの場合 transactd-client-[platform]_with_sdk-2.
|
135
|
-
* Linuxの場合 transactd-client-linux-x86_64_with_sdk-2.
|
134
|
+
* Windowsの場合 transactd-client-[platform]_with_sdk-2.4.0.zip
|
135
|
+
* Linuxの場合 transactd-client-linux-x86_64_with_sdk-2.4.0.tar.gz
|
136
136
|
|
137
137
|
といった形式です。[platform]はwin32またはwin64です。
|
138
138
|
たとえば、LINUXの完全なURLは以下の通りです。
|
139
139
|
|
140
|
-
http://www.bizstation.jp/al/transactd/download/transactd-client/transactd-client-linux-x86_64_with_sdk-2.
|
140
|
+
http://www.bizstation.jp/al/transactd/download/transactd-client/transactd-client-linux-x86_64_with_sdk-2.4.0.tar.gz
|
141
141
|
|
142
142
|
|
143
143
|
|
@@ -145,11 +145,11 @@ Transactdクライアントのインストール
|
|
145
145
|
-------------------------------------------------------------------------------
|
146
146
|
|
147
147
|
### Windowsでのインストール
|
148
|
-
1. ダウンロードしたtransactd-client-[platform]_with_sdk-2.
|
149
|
-
2. ルートフォルダーのtransactd-client-[platform]_with_sdk-2.
|
148
|
+
1. ダウンロードしたtransactd-client-[platform]_with_sdk-2.4.0.zipを開きます。
|
149
|
+
2. ルートフォルダーのtransactd-client-[platform]_with_sdk-2.4.0ごと適当なフォルダに
|
150
150
|
コピーします。
|
151
|
-
3. transactd-client-[platform]_with_sdk-2.
|
152
|
-
これによりtransactd-client-[platform]_with_sdk-2.
|
151
|
+
3. transactd-client-[platform]_with_sdk-2.4.0直下にあるinstall.cmdを実行します。
|
152
|
+
これによりtransactd-client-[platform]_with_sdk-2.4.0\binフォルダをシステム環境変数
|
153
153
|
PATHに追加します。
|
154
154
|
|
155
155
|
C++クライアントは binフォルダに配置された以下の3つのDLLからなります。
|
@@ -161,13 +161,11 @@ C++クライアントは binフォルダに配置された以下の3つのDLL
|
|
161
161
|
このうち下の2つはC++のクラスをエクスポートするための、コンパイラごとに異なった
|
162
162
|
モジュールです。また、それを利用したテストやベンチマーク、その他のプログラムも
|
163
163
|
コンパイラごとになっていますです。それらはbin配下にコンパイラの名前のフォルダに
|
164
|
-
|
165
|
-
|
164
|
+
配置されています。これらのバイナリーはMicrosoft Visual studio 2010にてビルドされ
|
165
|
+
ています。
|
166
|
+
Embarcadero C++Builderで使用する場合は、下記をご覧ください。
|
167
|
+
http://www.bizstation.jp/ja/transactd/documents/BUILD_WIN.html
|
166
168
|
|
167
|
-
ビルド済みバイナリーが含まれるコンパイラは以下の7種類です。
|
168
|
-
|
169
|
-
* Microsoft Visual studio 2010用 (ActiveX(COM)クライアントを含みます)
|
170
|
-
* Embarcadero C++Builder XE~XE6シリーズ用
|
171
169
|
|
172
170
|
|
173
171
|
### Linuxでのインストール
|
@@ -178,8 +176,8 @@ C++クライアントは binフォルダに配置された以下の3つのDLL
|
|
178
176
|
|
179
177
|
2. ダウンロードしたtar.gzを解凍し、解凍したフォルダに移動します。
|
180
178
|
```
|
181
|
-
tar zxf transactd-client-linux-x86_64_with_sdk-2.
|
182
|
-
cd transactd-client-linux-x86_64_with_sdk-2.
|
179
|
+
tar zxf transactd-client-linux-x86_64_with_sdk-2.4.0.tar.gz
|
180
|
+
cd transactd-client-linux-x86_64_with_sdk-2.4.0
|
183
181
|
```
|
184
182
|
|
185
183
|
3. インストールスクリプトを実行します。
|
@@ -254,7 +252,7 @@ Transactd Pluginとクライアントのインストールが済んだら、テ
|
|
254
252
|
### Windowsでの起動
|
255
253
|
1. クライアントのインストールで解凍したフォルダに移動します
|
256
254
|
```
|
257
|
-
cd transactd-client-[platform]_with_sdk-2.
|
255
|
+
cd transactd-client-[platform]_with_sdk-2.4.0
|
258
256
|
```
|
259
257
|
|
260
258
|
2. テストの起動
|
@@ -281,7 +279,7 @@ Transactd Pluginとクライアントのインストールが済んだら、テ
|
|
281
279
|
### Linuxでの起動
|
282
280
|
1. クライアントのインストールで解凍したフォルダに移動します
|
283
281
|
```
|
284
|
-
cd transactd-client-linux-x86_64_with_sdk-2.
|
282
|
+
cd transactd-client-linux-x86_64_with_sdk-2.4.0
|
285
283
|
```
|
286
284
|
|
287
285
|
2. テストの起動
|
@@ -305,7 +303,9 @@ http://www.bizstation.jp/ja/transactd/client/sdk/doc/
|
|
305
303
|
source/bzs/exampleフォルダに、簡単なサンプルコードがあります。
|
306
304
|
|
307
305
|
build/exampleフォルダにコンパイラに応じたプロジェクトファイル(Windows)があります。
|
308
|
-
または、make_example.shスクリプト(Linux)でこれらをビルドできます。
|
306
|
+
または、make_example.shスクリプト(Linux)でこれらをビルドできます。(Linuxでのビルド
|
307
|
+
の際にはMakefileのTI_BOOST_ROOTの値をインストールされたboostのフォルダに変更してく
|
308
|
+
ださい。)
|
309
309
|
|
310
310
|
Visual C++ 2010のExpress版 64Bitでコンパイルする際は、各プロジェクトの[オプション]
|
311
311
|
-[構成プロパティー]-[全般]-[プラットフォームツールセット]を"v100"から"Windows7.1SDK"
|
data/{README → README.md}
RENAMED
@@ -47,13 +47,13 @@ mysql>show variables like 'version';
|
|
47
47
|
```
|
48
48
|
The names of file to download are formed under following rules:
|
49
49
|
|
50
|
-
* Windows - transactd-[platform]-2.
|
51
|
-
* Linux - transactd-linux-x86_64-2.
|
50
|
+
* Windows - transactd-[platform]-2.4.0_[mysql-version].zip
|
51
|
+
* Linux - transactd-linux-x86_64-2.4.0_[mysql-version].tar.gz
|
52
52
|
|
53
53
|
[platform] is win32 or win64, [mysql-version] is mysql-5.x.x or mariadb-5.5.x.
|
54
54
|
For example, the URL for Linux-x86_64bit mysql-5.6.14 is as follows:
|
55
55
|
|
56
|
-
http://www.bizstation.jp/al/transactd/download/transactd-2.
|
56
|
+
http://www.bizstation.jp/al/transactd/download/transactd-2.4.0/transactd-linux-x86_64-2.4.0_mysql-5.6.14.tar.gz
|
57
57
|
|
58
58
|
You also can download source code archive and build from it.
|
59
59
|
In this case, the source code of MySQL/MariaDB is also required.
|
@@ -100,8 +100,8 @@ administrator authority.
|
|
100
100
|
|
101
101
|
2. Extract the tar.gz file and move into it.
|
102
102
|
```
|
103
|
-
tar zxf transactd-linux-x86_64-2.
|
104
|
-
cd transactd-linux-x86_64-2.
|
103
|
+
tar zxf transactd-linux-x86_64-2.4.0_mysql-5.6.14.tar.gz
|
104
|
+
cd transactd-linux-x86_64-2.4.0_mysql-5.6.14
|
105
105
|
```
|
106
106
|
|
107
107
|
3. Copy libtransactd.so to `[MySQL|MariaDB installed directory]/lib/plugin`.
|
@@ -132,13 +132,13 @@ The Transactd clients are required to access data through Transactd Plugin.
|
|
132
132
|
Download the Transactd client binaries for your platform.
|
133
133
|
The names of file to download are formed under following rules:
|
134
134
|
|
135
|
-
* Windows - transactd-client-[platform]_with_sdk-2.
|
136
|
-
* Linux - transactd-client-linux-x86_64_with_sdk-2.
|
135
|
+
* Windows - transactd-client-[platform]_with_sdk-2.4.0.zip
|
136
|
+
* Linux - transactd-client-linux-x86_64_with_sdk-2.4.0.tar.gz
|
137
137
|
|
138
138
|
[platform] is win32 or win64.
|
139
139
|
For example, the URL for Linux-x86_64bit is as follows:
|
140
140
|
|
141
|
-
http://www.bizstation.jp/al/transactd/download/transactd-client/transactd-client-linux-x86_64_with_sdk-2.
|
141
|
+
http://www.bizstation.jp/al/transactd/download/transactd-client/transactd-client-linux-x86_64_with_sdk-2.4.0.tar.gz
|
142
142
|
|
143
143
|
|
144
144
|
|
@@ -146,11 +146,11 @@ Installing Transactd clients
|
|
146
146
|
-------------------------------------------------------------------------------
|
147
147
|
|
148
148
|
### Installing on Windows
|
149
|
-
1. Open transactd-client-[platform]_with_sdk-2.
|
150
|
-
2. Select the root folder transactd-client-[platform]-with_sdk-2.
|
149
|
+
1. Open transactd-client-[platform]_with_sdk-2.4.0.zip from explorer.
|
150
|
+
2. Select the root folder transactd-client-[platform]-with_sdk-2.4.0 and
|
151
151
|
copy to a folder of your choice.
|
152
|
-
3. Run the "install.cmd" in the transactd-client-[platform]_with_sdk-2.
|
153
|
-
This command adds "transactd-client-[platform]_with_sdk-2.
|
152
|
+
3. Run the "install.cmd" in the transactd-client-[platform]_with_sdk-2.4.0 folder.
|
153
|
+
This command adds "transactd-client-[platform]_with_sdk-2.4.0\bin" folder to
|
154
154
|
the system environment variables "PATH".
|
155
155
|
|
156
156
|
C++ clients contains the following three files which is placed in bin folder.
|
@@ -163,13 +163,10 @@ The last two of above files are modules that are compiled with each compilers
|
|
163
163
|
in order to export the classes of C++. The benchmark programs and test programs
|
164
164
|
are also compiled with each compilers. These files are located in the folder
|
165
165
|
which has the compiler name in the bin folder.
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
* Microsoft Visual studio 2010 (Include ActiveX(COM) client)
|
172
|
-
* Embarcadero C++Builder XE~XE6series
|
166
|
+
These binaries have been built by the Microsoft Visual studio 2010.
|
167
|
+
If you want to use in the Embarcadero C ++ Builder.
|
168
|
+
Please see following information.
|
169
|
+
http://www.bizstation.jp/en/transactd/documents/BUILD_WIN.html
|
173
170
|
|
174
171
|
|
175
172
|
### Installing on Linux
|
@@ -180,8 +177,8 @@ There are binaries which is compiled with following 7 compilers:
|
|
180
177
|
|
181
178
|
2. Extract the tar.gz file and move into it.
|
182
179
|
```
|
183
|
-
tar zxf transactd-client-linux-x86_64_with_sdk-2.
|
184
|
-
cd transactd-client-linux-x86_64_with_sdk-2.
|
180
|
+
tar zxf transactd-client-linux-x86_64_with_sdk-2.4.0.tar.gz
|
181
|
+
cd transactd-client-linux-x86_64_with_sdk-2.4.0
|
185
182
|
```
|
186
183
|
|
187
184
|
3. Run the install script.
|
@@ -251,7 +248,7 @@ Test script executes the tests in following order:
|
|
251
248
|
### Executing on Windows
|
252
249
|
1. Move to the client directory.
|
253
250
|
```
|
254
|
-
cd transactd-client-[platform]_with_sdk-2.
|
251
|
+
cd transactd-client-[platform]_with_sdk-2.4.0
|
255
252
|
```
|
256
253
|
|
257
254
|
2. run test:
|
@@ -279,7 +276,7 @@ Test script executes the tests in following order:
|
|
279
276
|
### Executing on Linux
|
280
277
|
1. Move to the client directory.
|
281
278
|
```
|
282
|
-
cd transactd-client-linux-x86_64_with_sdk-2.
|
279
|
+
cd transactd-client-linux-x86_64_with_sdk-2.4.0
|
283
280
|
```
|
284
281
|
|
285
282
|
2. run test:
|
@@ -302,7 +299,8 @@ http://www.bizstation.jp/ja/transactd/client/sdk/doc/
|
|
302
299
|
There are some simple sample codes in ($installdir)/source/bzs/example.
|
303
300
|
|
304
301
|
You can build them with project files in build/example (Windows) or
|
305
|
-
make_example.sh script (Linux).
|
302
|
+
make_example.sh script (Linux). On Linux, please change to the folder of boost
|
303
|
+
that is installed the value of TI_BOOST_ROOT of the Makefile when building.
|
306
304
|
|
307
305
|
If you compile with the 64Bit version of the Visual C++ 2010 Express edittion,
|
308
306
|
change option to "Windows7.1SDK" from "v100" in
|
File without changes
|
File without changes
|
data/RELEASE_NOTE
CHANGED
@@ -1,5 +1,125 @@
|
|
1
1
|
Release note
|
2
2
|
|
3
|
+
================================================================================
|
4
|
+
Version 2.4.0 2015/06/03
|
5
|
+
================================================================================
|
6
|
+
Upgrade Notes
|
7
|
+
--------------------------------------------------------------------------------
|
8
|
+
* Compatibility between server plugin and clients.
|
9
|
+
Upgrade from the Version 2.3 is easy.
|
10
|
+
Server plug-ins, clients, it is both compatible with 2.4.
|
11
|
+
(However, except the new features of the 2.4)
|
12
|
+
|
13
|
+
Upgrade from a previous version than Version 2.3, please check the previous
|
14
|
+
release notes.
|
15
|
+
|
16
|
+
New Features
|
17
|
+
--------------------------------------------------------------------------------
|
18
|
+
* Transactd studio
|
19
|
+
The following information API has been added to the Transactd.
|
20
|
+
Connection in use
|
21
|
+
Database in use
|
22
|
+
Table in use
|
23
|
+
|
24
|
+
In the table information, it will be examined following number of records from
|
25
|
+
the open table.
|
26
|
+
read,update,insert,delete
|
27
|
+
|
28
|
+
* ActiveTable, It was now possible to obtain a recordset from bookmarks.
|
29
|
+
You can set multiple bookmark using the queryBase::addSeekBookmark method.
|
30
|
+
|
31
|
+
After you set the query to the table object, and at the same time and count the
|
32
|
+
number of records that match the conditions when you call the table::recordCount()
|
33
|
+
, you can get them of bookmark by the table::bookmarks().
|
34
|
+
|
35
|
+
* The following methods in C ++ API, it has to allow simultaneous access from
|
36
|
+
multiple threads.
|
37
|
+
table::insertBookmarks
|
38
|
+
table::moveBookmarks
|
39
|
+
table::bookmarksCount
|
40
|
+
table::bookmarks
|
41
|
+
|
42
|
+
Other Modifications
|
43
|
+
--------------------------------------------------------------------------------
|
44
|
+
* Fixed, In null key access P.SQL compatible, that may be whether the judgment
|
45
|
+
mistake or null key.
|
46
|
+
|
47
|
+
* Fixed, Sometimes automatic schema generation does not work.
|
48
|
+
|
49
|
+
* Improved, lock control to get the server statistics. Improve the simultaneous
|
50
|
+
effectiveness at the time of monitoring.
|
51
|
+
|
52
|
+
* Added, the nsdatabase::isReconnected() method.
|
53
|
+
It indicates whether went to reconnect to the server.
|
54
|
+
|
55
|
+
* Supported, The reconnect in the case of using multiple databases in a single
|
56
|
+
connection.
|
57
|
+
|
58
|
+
* Fixed, If there is a null key to when the table is created, may cause by adding
|
59
|
+
unnecessary internal null field.
|
60
|
+
|
61
|
+
* Fixed, invalid pointer operations when it receives an invalid prepared query
|
62
|
+
handle.
|
63
|
+
|
64
|
+
* Fixed, May not be able to coexist with the lock by the SQL access.
|
65
|
+
|
66
|
+
* Adding Methods
|
67
|
+
short dbdef::validateTableDef(short TableIndex)
|
68
|
+
ushort_td nstable::bookmarkLen() const
|
69
|
+
bookmark_td tabale::bookmarks(unsigned int index) const
|
70
|
+
recordCountFn Call back function
|
71
|
+
table::setOnRecordCount
|
72
|
+
table::onRecordCount
|
73
|
+
bool queryBase::isSeekByBookmarks() const
|
74
|
+
void queryBase::addSeekBookmark(bookmark_td& bm, ushort_td len, bool reset=false)
|
75
|
+
bool writableRecord::read(bookmark_td& bm)
|
76
|
+
|
77
|
+
* Changing the method name
|
78
|
+
table::setBookMarks --> table::insertBookmarks
|
79
|
+
table::moveBookmarksId --> table::moveBookmarks
|
80
|
+
table::bookMarksCount --> table::bookmarksCount
|
81
|
+
|
82
|
+
* Adding of method parameters
|
83
|
+
void database::close(bool withDropDefaultSchema = false)
|
84
|
+
activeTable::activeTable(database* db, short tableIndex,
|
85
|
+
short mode = TD_OPEN_NORMAL)
|
86
|
+
static activeTable* create(database* db, short tableIndex,
|
87
|
+
short mode = TD_OPEN_NORMAL);
|
88
|
+
|
89
|
+
* Change of bookmark_td type from unsigned int.
|
90
|
+
struct BOOKMARK
|
91
|
+
{
|
92
|
+
uchar_td val[MAX_BOOKMARK_SIZE];
|
93
|
+
bool empty;
|
94
|
+
BOOKMARK():empty(true){ }
|
95
|
+
bool isEmpty(){ return empty; }
|
96
|
+
void set(uchar_td* p, int len)
|
97
|
+
{
|
98
|
+
memcpy(val, p, len);
|
99
|
+
empty = false;
|
100
|
+
}
|
101
|
+
};
|
102
|
+
|
103
|
+
* A function that takes a bookmark_td type argument, it was changed to refer
|
104
|
+
to the bookmark_td type.
|
105
|
+
|
106
|
+
* The argument of openTable of C++ convenience API it was all arguments
|
107
|
+
correspondence.
|
108
|
+
|
109
|
+
* We added the following function in a C++ convenience API.
|
110
|
+
void deleteTable(dbdef* def, short id)
|
111
|
+
void renumberTable(dbdef* def, short id, short newid)
|
112
|
+
void deleteField(dbdef* def, short tableid, short fieldNum)
|
113
|
+
void deleteKey(dbdef* def, short tableid, short keynum)
|
114
|
+
void validateTableDef(dbdef* def, short tableid)
|
115
|
+
|
116
|
+
* Trasnactd Client with SDK for Windows, binary for Embarcadero C ++ Builder is
|
117
|
+
no longer included. If you want to use in the Embarcadero C ++ Builder,
|
118
|
+
it is still available at that to build from source.
|
119
|
+
http://www.bizstation.jp/ja/transactd/documents/BUILD_WIN.html
|
120
|
+
|
121
|
+
|
122
|
+
|
3
123
|
================================================================================
|
4
124
|
Version 2.3.0 2015-03-20
|
5
125
|
================================================================================
|
data/RELEASE_NOTE-JA
CHANGED
@@ -1,5 +1,115 @@
|
|
1
1
|
リリースノート
|
2
2
|
|
3
|
+
================================================================================
|
4
|
+
Version 2.4.0 2015/06/03
|
5
|
+
================================================================================
|
6
|
+
バージョンアップ上の注意点
|
7
|
+
--------------------------------------------------------------------------------
|
8
|
+
・サーバー クライアントのバージョン互換性
|
9
|
+
Version 2.3系からのバージョンアップは特に注意する点はありません。サーバー、クラ
|
10
|
+
イアントともに、2.4系との相互運用が可能です。(但し、2.4の新機能を除く)
|
11
|
+
|
12
|
+
Version 2.3より前のバージョンからのアップグレードは以前のリリースノートを確認して
|
13
|
+
ください。
|
14
|
+
|
15
|
+
新機能
|
16
|
+
--------------------------------------------------------------------------------
|
17
|
+
・Transactd studio
|
18
|
+
Transactdに、使用中のコネクション、データベース、テーブル情報を表示するための
|
19
|
+
APIが実装されました。テーブル情報では、テーブルをオープンしてからの読み取り、更
|
20
|
+
新、追加、削除したレコード数などを得ることができます。
|
21
|
+
|
22
|
+
・activeTableでbookmarkからのrecordsetの取得を可能にしました。
|
23
|
+
queryBase::addSeekBookmarkを使って複数のbookmarkをセットできます。
|
24
|
+
tableオブジェクトにqueryをセットしてから、table::recordCount()を呼び出すと条件
|
25
|
+
にマッチしたレコード数を数えるのと同時に、table::bookmarks()でそれらのbookmarkを
|
26
|
+
取得できます。
|
27
|
+
|
28
|
+
・C++APIにおいて以下のメソッドを、フリースレッド対応しました。複数のスレッドから
|
29
|
+
同時アクセス可能です。
|
30
|
+
table::insertBookmarks
|
31
|
+
table::moveBookmarks
|
32
|
+
table::bookmarksCount
|
33
|
+
table::bookmarks
|
34
|
+
|
35
|
+
その他の修正と変更点
|
36
|
+
--------------------------------------------------------------------------------
|
37
|
+
・P.SQL互換のヌルキーアクセスにおいて、ヌルキーかどうかの判定ミスすることがある不
|
38
|
+
具合を修正しました。
|
39
|
+
|
40
|
+
・既存のテーブルの自動スキーマ生成がうまくいかない場合がある不具合を修正しました。
|
41
|
+
|
42
|
+
・サーバー統計情報を取得するためのロック制御を改善しました。モニタリング時の同時実
|
43
|
+
効性を向上させました。
|
44
|
+
|
45
|
+
・nsdatabase::isReconnected()メソッドを追加しました。
|
46
|
+
サーバーへの再接続を行ったかどうかを示します。
|
47
|
+
|
48
|
+
・1つの接続で複数データベースを使用した場合の reconnectをサポートしました。
|
49
|
+
|
50
|
+
・テーブルの作成時にヌルキーがあった場合、不要な内部用ヌルフィールドを追加してしま
|
51
|
+
うことがある不具合を修正しました。
|
52
|
+
|
53
|
+
・無効なプリペアードクエリハンドル受取ったときに、無効なポインタ操作してしまうバグ
|
54
|
+
を修正しました。
|
55
|
+
|
56
|
+
・SQLアクセスによるロックと共存できないことがある不具合を修正しました。
|
57
|
+
|
58
|
+
・メソッドの追加
|
59
|
+
short dbdef::validateTableDef(short TableIndex)
|
60
|
+
ushort_td nstable::bookmarkLen() const
|
61
|
+
bookmark_td tabale::bookmarks(unsigned int index) const
|
62
|
+
recordCountFn Call back function
|
63
|
+
table::setOnRecordCount
|
64
|
+
table::onRecordCount
|
65
|
+
bool queryBase::isSeekByBookmarks() const
|
66
|
+
void queryBase::addSeekBookmark(bookmark_td& bm, ushort_td len, bool reset=false)
|
67
|
+
bool writableRecord::read(bookmark_td& bm)
|
68
|
+
|
69
|
+
・メソッド名の変更
|
70
|
+
table::setBookMarks --> table::insertBookmarks
|
71
|
+
table::moveBookmarksId --> table::moveBookmarks
|
72
|
+
table::bookMarksCount --> table::bookmarksCount
|
73
|
+
|
74
|
+
・メソッドパラメータの追加
|
75
|
+
void database::close(bool withDropDefaultSchema = false)
|
76
|
+
activeTable::activeTable(database* db, short tableIndex,
|
77
|
+
short mode = TD_OPEN_NORMAL)
|
78
|
+
static activeTable* create(database* db, short tableIndex,
|
79
|
+
short mode = TD_OPEN_NORMAL);
|
80
|
+
|
81
|
+
・bookmark_td型の変更 unsigned int から
|
82
|
+
struct BOOKMARK
|
83
|
+
{
|
84
|
+
uchar_td val[MAX_BOOKMARK_SIZE];
|
85
|
+
bool empty;
|
86
|
+
BOOKMARK():empty(true){ }
|
87
|
+
bool isEmpty(){ return empty; }
|
88
|
+
void set(uchar_td* p, int len)
|
89
|
+
{
|
90
|
+
memcpy(val, p, len);
|
91
|
+
empty = false;
|
92
|
+
}
|
93
|
+
};
|
94
|
+
|
95
|
+
・bookmark_td型を引数に取る関数で、bookmark_td型を参照に変更しました。
|
96
|
+
|
97
|
+
・コンビニエンスAPIのopenTableの引数をフル引数対応しました。
|
98
|
+
|
99
|
+
・コンビニエンスAPIに以下の関数を追加しました。
|
100
|
+
void deleteTable(dbdef* def, short id)
|
101
|
+
void renumberTable(dbdef* def, short id, short newid)
|
102
|
+
void deleteField(dbdef* def, short tableid, short fieldNum)
|
103
|
+
void deleteKey(dbdef* def, short tableid, short keynum)
|
104
|
+
void validateTableDef(dbdef* def, short tableid)
|
105
|
+
|
106
|
+
・Trasnactd Client with SDK のWindows版に、Embarcadero C++Builder用バイナリは
|
107
|
+
含まれなくなりました。Embarcadero C++Builderで使用する場合は、ソースからビルド
|
108
|
+
することで引き続き利用可能です。
|
109
|
+
http://www.bizstation.jp/ja/transactd/documents/BUILD_WIN.html
|
110
|
+
|
111
|
+
|
112
|
+
|
3
113
|
================================================================================
|
4
114
|
Version 2.3.0 2015/03/20
|
5
115
|
================================================================================
|
data/bin/1.9/transactd.so
CHANGED
Binary file
|
data/bin/2.0/transactd.so
CHANGED
Binary file
|
data/bin/2.1/transactd.so
CHANGED
Binary file
|
data/bin/2.2/transactd.so
CHANGED
Binary file
|
Binary file
|
Binary file
|
@@ -56,6 +56,7 @@ ruby_library_path = arg_config('--ruby_library_path', '').gsub(/"\n/, '')
|
|
56
56
|
install_prefix = arg_config('--install_prefix', '').gsub(/"\n/, '')
|
57
57
|
build_type = arg_config('--build_type', '').gsub(/"\n/, '')
|
58
58
|
no_rb_tbr = arg_config('--without_rb_thread_blocking_region', '').gsub(/"\n/, '').downcase
|
59
|
+
no_c_cpp = arg_config('--without_c_cpp_clients')
|
59
60
|
|
60
61
|
# boost
|
61
62
|
if boost != '' && boost !=~ /^\-DBOOST_ROOT/
|
@@ -121,10 +122,13 @@ rb_tbr = ' -DTRANSACTD_HAVE_RB_THREAD_CALL_WITHOUT_GVL=' +
|
|
121
122
|
' -DTRANSACTD_HAVE_RB_THREAD_BLOCKING_REGION=' +
|
122
123
|
(use_TBR ? 'ON' : 'OFF')
|
123
124
|
|
125
|
+
# no_c_cpp
|
126
|
+
no_c_cpp = no_c_cpp ? ' -DTRANSACTD_WITHOUT_C_CPP_CLIENTS=ON' : ''
|
127
|
+
|
124
128
|
# cmake
|
125
129
|
cmake_cmd = ['cmake', to_native_path(transactd_gem_root_relative), '-DTRANSACTD_RUBY_GEM=ON',
|
126
130
|
generator, boost, ruby_executable, ruby_library_path, ruby_include_dirs,
|
127
|
-
install_prefix, gem_root, build_type, rb_tbr, '>> cmake_generate.log'].join(' ')
|
131
|
+
install_prefix, gem_root, build_type, rb_tbr, no_c_cpp, '>> cmake_generate.log'].join(' ')
|
128
132
|
begin
|
129
133
|
f = open('cmake_generate.log', 'w')
|
130
134
|
f.puts cmake_cmd
|
@@ -175,6 +175,7 @@ def testCreateTable(db)
|
|
175
175
|
kd.segmentCount = 1
|
176
176
|
dbdef.updateTableDef(table_id)
|
177
177
|
expect(dbdef.stat()).to eq 0
|
178
|
+
expect(dbdef.validateTableDef(td.id)).to eq 0
|
178
179
|
end
|
179
180
|
|
180
181
|
def testOpenTable(db)
|
@@ -1181,7 +1182,7 @@ def testTransactionLockReadCommited()
|
|
1181
1182
|
|
1182
1183
|
# cleanup
|
1183
1184
|
tb2.del() # last id = 29999
|
1184
|
-
expect(
|
1185
|
+
expect(tb2.stat()).to eq 0
|
1185
1186
|
|
1186
1187
|
# ----------------------------------------------------
|
1187
1188
|
# Abort test
|
@@ -1741,7 +1742,7 @@ def testInsert2()
|
|
1741
1742
|
end
|
1742
1743
|
|
1743
1744
|
def testDelete()
|
1744
|
-
expected_count =
|
1745
|
+
expected_count = 20002
|
1745
1746
|
db = Transactd::Database.new()
|
1746
1747
|
tb = testOpenTable(db)
|
1747
1748
|
# estimate count
|
@@ -3428,6 +3429,73 @@ def testWirtableRecord()
|
|
3428
3429
|
db.close()
|
3429
3430
|
end
|
3430
3431
|
|
3432
|
+
def testBookmark()
|
3433
|
+
min_id = 5
|
3434
|
+
max_id = 15
|
3435
|
+
db = Transactd::Database.new()
|
3436
|
+
db.open(URL_QT)
|
3437
|
+
expect(db.stat()).to eq 0
|
3438
|
+
tb = db.openTable('user')
|
3439
|
+
expect(db.stat()).to eq 0
|
3440
|
+
tb.setKeyNum(0)
|
3441
|
+
|
3442
|
+
tb.clearBuffer()
|
3443
|
+
tb.setFilter('id >= ' + min_id.to_s + ' and id <= ' + max_id.to_s, 0, 0)
|
3444
|
+
cnt = tb.recordCount()
|
3445
|
+
expect(tb.stat()).to eq 0
|
3446
|
+
bmCnt = tb.bookmarksCount()
|
3447
|
+
expect(cnt).to eq bmCnt
|
3448
|
+
tb.moveBookmarks(bmCnt - 1)
|
3449
|
+
expect(tb.stat()).to eq 0
|
3450
|
+
expect(tb.getFVint(FDI_ID)).to eq max_id
|
3451
|
+
tb.moveBookmarks(0)
|
3452
|
+
expect(tb.stat()).to eq 0
|
3453
|
+
expect(tb.getFVint(FDI_ID)).to eq min_id
|
3454
|
+
|
3455
|
+
q = Transactd::Query.new()
|
3456
|
+
q.where('id', '>=', min_id).and_('id', '<=', max_id).reject(0xFFFF)
|
3457
|
+
|
3458
|
+
tb.setQuery(q.bookmarkAlso(true))
|
3459
|
+
cnt = tb.recordCount()
|
3460
|
+
expect(tb.stat()).to eq 0
|
3461
|
+
bmCnt = tb.bookmarksCount()
|
3462
|
+
expect(cnt).to eq bmCnt
|
3463
|
+
tb.moveBookmarks(bmCnt - 1)
|
3464
|
+
expect(tb.stat()).to eq 0
|
3465
|
+
expect(tb.getFVint(FDI_ID)).to eq max_id
|
3466
|
+
tb.moveBookmarks(0)
|
3467
|
+
expect(tb.stat()).to eq 0
|
3468
|
+
expect(tb.getFVint(FDI_ID)).to eq min_id
|
3469
|
+
|
3470
|
+
qb = Transactd::Query.new()
|
3471
|
+
atu = Transactd::ActiveTable.new(db, 'user')
|
3472
|
+
|
3473
|
+
# Hold bookmark objects to reading.
|
3474
|
+
bm1 = tb.bookmarks(0)
|
3475
|
+
bm2 = tb.bookmarks(2)
|
3476
|
+
bm3 = tb.bookmarks(4)
|
3477
|
+
|
3478
|
+
qb.addSeekBookmark(bm1, tb.bookmarkLen(), false)
|
3479
|
+
qb.addSeekBookmark(bm2, tb.bookmarkLen(), false)
|
3480
|
+
qb.addSeekBookmark(bm3, tb.bookmarkLen(), false)
|
3481
|
+
rs = atu.read(qb)
|
3482
|
+
|
3483
|
+
expect(rs.size()).to eq 3
|
3484
|
+
expect(rs[0][FDI_ID]).to eq min_id
|
3485
|
+
expect(rs[1][FDI_ID]).to eq min_id + 2
|
3486
|
+
expect(rs[2][FDI_ID]).to eq min_id + 4
|
3487
|
+
|
3488
|
+
rec = atu.index(0).getWritableRecord()
|
3489
|
+
rec.read(tb.bookmarks(bmCnt - 1))
|
3490
|
+
expect(rec[FDI_ID]).to eq max_id
|
3491
|
+
rec.read(tb.bookmarks(0))
|
3492
|
+
expect(rec[FDI_ID]).to eq min_id
|
3493
|
+
|
3494
|
+
atu.release()
|
3495
|
+
tb.close()
|
3496
|
+
db.close()
|
3497
|
+
end
|
3498
|
+
|
3431
3499
|
describe Transactd do
|
3432
3500
|
it 'create database' do
|
3433
3501
|
db = Transactd::Database.new()
|
@@ -3567,6 +3635,10 @@ describe Transactd do
|
|
3567
3635
|
it 'write with writableRecord' do
|
3568
3636
|
testWirtableRecord()
|
3569
3637
|
end
|
3638
|
+
it 'bookmark' do
|
3639
|
+
testBookmark()
|
3640
|
+
end
|
3641
|
+
|
3570
3642
|
end
|
3571
3643
|
|
3572
3644
|
describe Transactd, 'var tables' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transactd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: x86-mswin32-100
|
6
6
|
authors:
|
7
7
|
- BizStation Corp.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Transactd client for ruby gem
|
14
14
|
email: transactd@bizstation.jp
|
@@ -22,8 +22,8 @@ files:
|
|
22
22
|
- bin/2.1/transactd.so
|
23
23
|
- bin/2.2/transactd.so
|
24
24
|
- build/tdclrb/bldgem/extconf.rb
|
25
|
-
- bin/common/
|
26
|
-
- bin/common/
|
25
|
+
- bin/common/tdclcpp_vc100_32mr_2_4.dll
|
26
|
+
- bin/common/tdclc_32_2_4.dll
|
27
27
|
- build/tdclrb/gem/detect.rb
|
28
28
|
- build/tdclrb/gem/helper.rb
|
29
29
|
- build/tdclrb/gem/INSTALLLOG.win32
|
@@ -40,15 +40,15 @@ files:
|
|
40
40
|
- source/bzs/test/tdclrb/transactd_kanjischema_spec.rb
|
41
41
|
- source/bzs/test/tdclrb/transactd_pool_spec.rb
|
42
42
|
- source/bzs/test/tdclrb/transactd_spec.rb
|
43
|
-
- ./BUILD_UNIX-JA
|
44
|
-
- ./BUILD_WIN-JA
|
43
|
+
- ./BUILD_UNIX-JA.md
|
44
|
+
- ./BUILD_WIN-JA.md
|
45
45
|
- ./CMakeLists.txt
|
46
46
|
- ./COPYING
|
47
47
|
- ./index_ja.html
|
48
|
-
- ./README
|
49
|
-
- ./README
|
50
|
-
- ./README_ORMSRCGEN
|
51
|
-
- ./README_ORMSRCGEN
|
48
|
+
- ./README-JA.md
|
49
|
+
- ./README.md
|
50
|
+
- ./README_ORMSRCGEN-JA.md
|
51
|
+
- ./README_ORMSRCGEN.md
|
52
52
|
- ./RELEASE_NOTE
|
53
53
|
- ./RELEASE_NOTE-JA
|
54
54
|
- ./transactd.gemspec
|
data/bin/common/tdclc_32_2_3.dll
DELETED
Binary file
|
Binary file
|