transactd 2.4.5-x86-mswin32-100 → 3.0.0-x86-mswin32-100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,559 +1,88 @@
1
- Transactd readme
1
+ Transactd
2
2
  ===============================================================================
3
- Transactd is plugin which adds NoSQL access to MySQL/MariaDB.
3
+ Transactd manipulates internal database access method to MySQL/MariaDB directly,
4
+ and provides the flexible high-speed database access.
4
5
 
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
- * C++ O/R mapping source code generator
17
- * Query executer
18
- * About the license of Transactd Plugin
19
- * About the license of Transactd Client
20
- * Bug reporting, requests and questions
21
- * Copyright of related products
6
+ In general, NoSQL has some limitations such as can not use the transaction.
7
+ But Transactd will can use transaction in the same way as SQL.
22
8
 
9
+ Operation with SQL is that: parse SQL syntax in the server, decompose to row
10
+ basis access methods, processing, and returns the result.
23
11
 
12
+ Transactd make it possible to control these row basis processing in the client
13
+ side. And the API is very simple.
24
14
 
25
- Introduction
26
- -------------------------------------------------------------------------------
27
- Transactd consists of the server side plugin and the client side modules.
28
- The server side plugin is called "Transactd Plugin" and the client side module
29
- is called "Transactd clients".
30
- Transactd has been constantly updated. This text has also been updated with the
31
- latest information in this release. Please refer to the RELEASE_NOTE.md the
32
- changes in this release.
33
-
34
-
35
- Preparation of Transactd Plugin binary
36
- -------------------------------------------------------------------------------
37
- Check the version of your MySQL/MariaDB and download suitable Transactd Plugin
38
- binary. If you don't know what is version, start MySQL Command Line client and
39
- run following command:
40
- ```
41
- mysql>show variables like 'version';
42
- +---------------+--------+
43
- | Variable_name | Value |
44
- +---------------+--------+
45
- | version | 5.6.14 |
46
- +---------------+--------+
47
- ```
48
- The names of file to download are formed under following rules:
49
-
50
- * Windows - transactd-[platform]-2.4.2_[mysql-version].zip
51
- * Linux - transactd-linux-x86_64-2.4.2_[mysql-version].tar.gz
52
-
53
- [platform] is win32 or win64, [mysql-version] is mysql-5.x.x or mariadb-5.5.x.
54
- For example, the URL for Linux-x86_64bit mysql-5.6.14 is as follows:
55
-
56
- http://www.bizstation.jp/al/transactd/download/transactd-2.4.2/transactd-linux-x86_64-2.4.2_mysql-5.6.14.tar.gz
57
-
58
- You also can download source code archive and build from it.
59
- In this case, the source code of MySQL/MariaDB is also required.
60
-
61
- See BUILD_WIN-{lang}.md or BUILD_UNIX-{lang}.md in the source code archive
62
- for how to build.
63
-
64
-
65
-
66
- Installing Transactd Plugin
67
- -------------------------------------------------------------------------------
68
- Transactd Plugin can be installed by copying file, without adding any change to
69
- the binary of MySQL/MariaDB.
70
- You don't have to stop MySQL/MariaDB to install the plugin. It requires
71
- administrator authority.
72
-
73
- ### Installing on Windows
74
- 1. Open the zip file downloaded in Explorer. Check if transactd.dll is exists.
75
-
76
- 2. Copy transactd.dll to `[MySQL|MariaDB installed directory]/lib/plugin`.
77
- If you don't know where is [MySQL|MariaDB installed directory], start MySQL
78
- Command Line client and run following command:
79
- ```
80
- mysql>show variables like 'plugin%';
81
- +---------------+----------------------------------------------------+
82
- | Variable_name | Value |
83
- +---------------+----------------------------------------------------+
84
- | plugin_dir | C:\Program Files\MySQL\MySQL Server 5.6\lib\Plugin |
85
- +---------------+----------------------------------------------------+
86
- ```
87
-
88
- 3. Start MySQL Command Line client and run following command:
89
- ```
90
- mysql>INSTALL PLUGIN transactd SONAME 'transactd.dll';
91
- ```
92
- Installation of Transactd Plugin is finished now.
93
-
94
-
95
- ### Installing on Linux
96
- 1. Move to the directory where downloaded tar.gz file is.
97
- ```
98
- cd [TargetFolder]
99
- ```
100
-
101
- 2. Extract the tar.gz file and move into it.
102
- ```
103
- tar zxf transactd-linux-x86_64-2.4.2_mysql-5.6.14.tar.gz
104
- cd transactd-linux-x86_64-2.4.2_mysql-5.6.14
105
- ```
106
-
107
- 3. Copy libtransactd.so to `[MySQL|MariaDB installed directory]/lib/plugin`.
108
- If you don't know where is [MySQL|MariaDB installed directory], start MySQL
109
- Command Line client and run following command:
110
- ```
111
- mysql>show variables like 'plugin%';
112
- +---------------+-----------------------------+
113
- | Variable_name | Value |
114
- +---------------+-----------------------------+
115
- | plugin_dir | /usr/local/mysql/lib/plugin |
116
- +---------------+-----------------------------+
117
- mysql>exit
118
- cp libtransactd.so /usr/local/mysql/lib/plugin/
119
- ```
120
-
121
- 4. Start mysql client and run following command:
122
- ```
123
- mysql>INSTALL PLUGIN transactd SONAME 'libtransactd.so';
124
- ```
125
- Installation of Transactd Plugin is finished now.
126
-
127
-
128
-
129
- Preparation of Transactd client binaries
130
- -------------------------------------------------------------------------------
131
- The Transactd clients are required to access data through Transactd Plugin.
132
- Download the Transactd client binaries for your platform.
133
- The names of file to download are formed under following rules:
134
-
135
- * Windows - transactd-client-[platform]_with_sdk-2.4.2.zip
136
- * Linux - transactd-client-linux-x86_64_with_sdk-2.4.2.tar.gz
137
-
138
- [platform] is win32 or win64.
139
- For example, the URL for Linux-x86_64bit is as follows:
140
-
141
- http://www.bizstation.jp/al/transactd/download/transactd-client/transactd-client-linux-x86_64_with_sdk-2.4.2.tar.gz
142
-
143
-
144
-
145
- Installing Transactd clients
146
- -------------------------------------------------------------------------------
147
-
148
- ### Installing on Windows
149
- 1. Open transactd-client-[platform]_with_sdk-2.4.2.zip from explorer.
150
- 2. Select the root folder transactd-client-[platform]-with_sdk-2.4.2 and
151
- copy to a folder of your choice.
152
- 3. Run the "install.cmd" in the transactd-client-[platform]_with_sdk-2.4.2 folder.
153
- This command adds "transactd-client-[platform]_with_sdk-2.4.2\bin" folder to
154
- the system environment variables "PATH".
155
-
156
- C++ clients contains the following three files which is placed in bin folder.
157
-
158
- * tdclc_xx_[version].dll
159
- * tdclcpp_xx_[Compiler]_[version].dll
160
- * tdclstmt_xx_[Compiler]_[version].dll
161
-
162
- The last two of above files are modules that are compiled with each compilers
163
- in order to export the classes of C++. The benchmark programs and test programs
164
- are also compiled with each compilers. These files are located in the folder
165
- which has the compiler name in the bin folder.
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
170
-
171
-
172
- ### Installing on Linux
173
- 1. Move to the directory where downloaded tar.gz file is.
174
- ```
175
- cd [TargetFolder]
176
- ```
177
-
178
- 2. Extract the tar.gz file and move into it.
179
- ```
180
- tar zxf transactd-client-linux-x86_64_with_sdk-2.4.2.tar.gz
181
- cd transactd-client-linux-x86_64_with_sdk-2.4.2
182
- ```
183
-
184
- 3. Run the install script.
185
- ```
186
- ./install_client.sh
187
- ```
188
- Installation of Transactd client is finished now.
189
-
190
-
191
-
192
- Setting host permission to access Transactd
193
- -------------------------------------------------------------------------------
194
- To access data through Transactd, register root@[host] to user table of MySQL.
195
-
196
- * `root@127.0.0.1` allows access from a local machine.
197
- * `root@192.168.0.3` allows access from host 192.168.0.3.
198
- * `root@192.168.0.0/255.255.255.0` allows access from host 192.168.0.x.
199
-
200
- Start MySQL Command Line client and run following commands to register hosts.
201
- ```
202
- mysql>CREATE USER root@'192.168.0.0/255.255.255.0';
203
- ```
204
- This operation allow root user to access database. If the root password is not set,
205
- you MUST SET IT.
206
-
207
-
208
- ### Setup root password on Windows
209
- Open command prompt and run following command:
210
- ```
211
- "C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqladmin" -u root password 'xxxxx'
212
- ```
213
- (Replace xxxxx to your password.)
214
-
215
-
216
- ### Setup root password on Linux
217
- ```
218
- /usr/local/mysql/bin/mysqladmin -u root password 'xxxxx'
219
- ```
220
- (Replace xxxxx to your password.)
221
-
222
-
223
- ### Using other name than root
224
- It is also possible to register another user name than "root".
225
- In order to use another user name, please add the following to the [mysqld] section
226
- of my.cnf or my.ini.
227
- ```
228
- loose-transactd_hostcheck_username = yourUserName
229
- ```
230
- Replace yourUserName to an actual user name.
231
-
232
- ### Setting of firewall
233
- Transactd Plugin is used TCP port 8610 as default. If this port is blocked,
234
- please be able to access from your client host.
15
+ For example, following code shows how to print `id` and `name` of all records in
16
+ `users` table.
235
17
 
236
- Execution of test and benchmark program
237
- -------------------------------------------------------------------------------
238
- See also the detail of the test and the benchmark program topic.
239
-
240
- Test script executes the tests in following order:
241
- * test_tdclcpp_xx_xxm_xxx.exe A Multibyte modules test
242
- * test_tdclcpp_xx_xxu_xxx.exe A Unicode module test(Windows only)
243
- * bench_tdclcpp_xx.exe Benchmark of Insert read update
244
- * bench_query_xx.exe Benchmark of aquery
245
- * querystmtsxx.exe Test of Query executer
246
-
247
- "querystmtsxx.exe" is executed only if the target host is localhost.
248
-
249
-
250
- ### Executing on Windows
251
- 1. Move to the client directory.
252
- ```
253
- cd transactd-client-[platform]_with_sdk-2.4.2
254
- ```
255
-
256
- 2. run test:
257
- ```
258
- TestClient.cmd
259
- ```
260
-
261
- Then you will be asked the host name first, please specify
262
- the host name of the Transactd server. "localhost" will be set
263
- automatically if you do not specify anything.
264
-
265
- Next, select the number of the compiler to test.
266
- Then tests and benchmarks will be executed continuously.
267
-
268
- 3. run ActiveX(COM) test:
269
- ```
270
- TestClient_ATL.cmd
271
- ```
272
-
273
- Then you will be asked the host name first, please specify
274
- the host name of the Transactd server. "localhost" will be set
275
- automatically if you do not specify anything.
276
-
277
-
278
- ### Executing on Linux
279
- 1. Move to the client directory.
280
- ```
281
- cd transactd-client-linux-x86_64_with_sdk-2.4.2
282
- ```
283
-
284
- 2. run test:
285
- ```
286
- ./exec_test_all.sh
287
- ```
288
-
289
- Then you will be asked the host name first, please specify
290
- the host name of the Transactd server. "localhost" will be set
291
- automatically if you do not specify anything.
292
-
293
-
294
-
295
- Development of applications using Transactd clients
296
- -------------------------------------------------------------------------------
297
- Refer to the SDK documents to develop applications with Transactd clients.
298
-
299
- http://www.bizstation.jp/ja/transactd/client/sdk/doc/
300
-
301
- There are some simple sample codes in ($installdir)/source/bzs/example.
18
+ ```ruby
19
+ db = Transactd::Database.new()
20
+ db.open('tdap://servername/dbname?dbfile=transactd_schema')
302
21
 
303
- You can build them with project files in build/example (Windows) or
304
- make_example.sh script (Linux). On Linux, please change to the folder of boost
305
- that is installed the value of TI_BOOST_ROOT of the Makefile when building.
22
+ tb = db.openTable('users', Transactd::TD_OPEN_NORMAL)
306
23
 
307
- If you compile with the 64Bit version of the Visual C++ 2010 Express edittion,
308
- change option to "Windows7.1SDK" from "v100" in
309
- [Options] - [platform toolset] - [configuration properties] - [General].
310
- And add new environment variable TI_BOOST_ROOT_32 and TI_BOOST_ROOT_64,
311
- set the value to boost folder of 64bit and 32bit.
24
+ tb.seekFirst()
25
+ while (tb.stat() == 0) do
26
+ puts('id = ' + tb.getFVint('id').to_s() + ', name = ' + tb.getFVstr('name'))
27
+ tb.seekNext()
28
+ end
312
29
 
313
- ex)
314
- * 64bit TI_BOOST_ROOT_64 = C:\boost\boost_1_58_0
315
- * 32bit TI_BOOST_ROOT_32 = C:\boost\boost_1_58_0
316
-
317
-
318
- In the C++ Builder, the boost which has been supplied with the compiler
319
- are required. In [Tools] - [Options] - [Environment Options] - [C++ Options] -
320
- [directory and path] - [System Include Path], add the following path:
321
-
322
- * For 32Bit: $(CG_BOOST_ROOT)
323
- * For 64Bit: $(CG_64_BOOST_ROOT)
324
-
325
-
326
-
327
- Details of the test program
328
- -------------------------------------------------------------------------------
329
- The executable files whose name starts with test_ is test program.
330
-
331
- Please be sure to run test with only an instance. It will fail if test runs two or
332
- more instances.
333
- If others access to test database during test runs, fail to drop database and can't
334
- release database.
335
- In such a case, reboot a server or run following command in MySQL command line client
336
- to drop a database.
337
- ```
338
- mysql>drop database test;
339
- ```
340
-
341
- If `-- show_progress=yes` is passed, it shows progress like:
342
- ```
343
- 0% 10 20 30 40 50 60 70 80 90 100%
344
- |----|----|----|----|----|----|----|----|----|----|
345
- ************
30
+ tb.close()
31
+ db.close()
346
32
  ```
347
33
 
348
- Using `-- host=xxxxx` can specify host.
349
- The test using Japanese database name, table name and field name.
350
- To pass this test, set `character-set-server` as cp932 or utf8 in my.cnf.
351
- ```
352
- [mysqld]
353
- character-set-server=utf8
354
- ```
34
+ There are more APIs. See [tutorial](
35
+ http://www.bizstation.jp/en/transactd/documents/tutorial.html) to overview
36
+ main features of Transactd.
355
37
 
356
38
 
357
39
 
358
- Details of the benchmark program
40
+ Install
359
41
  -------------------------------------------------------------------------------
360
- There are two types in the benchmark program. One of them is the benchmark which
361
- read SQL-like query (bench_query_xxx).
362
- Another is basic CRUD operations benchmark (bench_tdclcpp_xxx).
42
+ Transactd consists of two modules, server plugin and client libraries.
43
+ Server plugin is called "Transactd plugin", client libraries are called
44
+ "Transactd clients".
363
45
 
364
- bench_tdclcpp_xxx can be executed in multiple instances, by changing the
365
- processNumber in command line arguments.
46
+ You can build Transactd from source code. Or you can use pre-built binaries.
47
+ See [Transactd Install guide](
48
+ http://www.bizstation.jp/en/transactd/documents/install_guide.html) to building
49
+ or installing Transactd.
366
50
 
367
- The command line options are:
368
- ```
369
- bench_tdclcpp_xxx.exe databaseUri processNumber functionNumber
370
51
 
371
- |----------------|--------------------------------------------------------|
372
- | option name | description |
373
- |----------------|--------------------------------------------------------|
374
- | databaseUri | URI of a database. |
375
- |----------------|--------------------------------------------------------|
376
- | processNumber | Specify different number to run two or more instances. |
377
- |----------------|--------------------------------------------------------|
378
- | functionNumber | Specify the operation number. |
379
- | | The operations: |
380
- | | -1: all of following |
381
- | | 0: Insert |
382
- | | 1: Insert in transaction. 20rec x 1000times |
383
- | | 2: Insert by bulkmode. 20rec x 1000times |
384
- | | 3: read each record |
385
- | | 4: read each record with snapshot |
386
- | | 5: read range. 20rec x 1000times |
387
- | | 6: read range with snapshot . 20rec x 1000times |
388
- | | 7: update |
389
- | | 8: update in transaction. 20rec x 1000times |
390
- |----------------|--------------------------------------------------------|
391
- ex)
392
- bench_tdclcpp_bc200_64u.exe "tdap://localhost/test?dbfile=test.bdf" 0 -1
393
- ```
394
52
 
395
- bench_query_xxx measures the speed of getting a similar result with
396
- the following SQL:
397
- ```
398
- select
399
- `user`.`id`
400
- ,`user`.`name`
401
- ,`extention`.`comment`
402
- ,`groups`.`name` as `group_name`
403
- from
404
- `user` INNER JOIN `extention`
405
- ON `user`.`id` = `extention`.`id`
406
- LEFT JOIN `groups`
407
- ON `user`.`group` = `groups`.`code`
408
- where
409
- `user`.`id` > 0 and `user`.`id` <= 15000;
410
-
411
- ```
412
- The command line options are:
413
- ```
414
- bench_query_xxx createdb hostname type n
415
- |----------------|--------------------------------------------------------|
416
- | option name | description |
417
- |----------------|--------------------------------------------------------|
418
- | createdb | Specify 0 or 1 to determine whether or not to create a |
419
- | | new test database. The default is 1. |
420
- |----------------|--------------------------------------------------------|
421
- | hostname | Specify the name or IP address of the location database|
422
- | | .The default is localhost. |
423
- |----------------|--------------------------------------------------------|
424
- | type | Specific numbers, the contents of the query. |
425
- | | The default is 15. |
426
- | | 1: Read 15,000 records from the user table |
427
- | | 3: JOIN the comment field of the extention table on the|
428
- | | results of the 1 |
429
- | | 7: JOIN the name of the table groups the results of the|
430
- | | 3 |
431
- | | 5: JOIN the name of the groups on the results of the 1 |
432
- | |+8: Display the execution progress of repeat |
433
- |----------------|--------------------------------------------------------|
434
- | n | Specifies the number of executions of the query |
435
- | | specified by type. The default is 100. |
436
- |----------------|--------------------------------------------------------|
437
- ex)
438
- bench_query_xxx 0 localhost 15 100
439
- ```
440
-
441
-
442
-
443
- C++ O/R mapping source code generator
444
- -------------------------------------------------------------------------------
445
- ormsrcgen (32 | 64) is a source code generator for C++ O/R mapping. You can
446
- use this program to generate the model class from the database definition if
447
- you want to use the O/R mapping in C++.
448
-
449
- Please refer to the README_ORMSRCGEN.md.
450
-
451
-
452
-
453
- Query executer
53
+ Documents
454
54
  -------------------------------------------------------------------------------
455
- querystmts is a program that execute the Transactd query that has been described
456
- in XML file. If you pass an XML file to querystmts, it executes the queries and
457
- outputs the result to the stdout.
55
+ * [Transactd Release Note](
56
+ https://github.com/bizstation/transactd/blob/master/RELEASE_NOTE.md)
57
+ * [Transactd product page](http://www.bizstation.jp/en/transactd/)
58
+ * [Transactd documents](http://www.bizstation.jp/en/transactd/documents/)
59
+ * [Transactd Utilities guide](
60
+ http://www.bizstation.jp/en/transactd/documents/utilities_guide.html)
61
+ * [Tutorial](http://www.bizstation.jp/en/transactd/documents/tutorial.html)
62
+ * [Reference](http://www.bizstation.jp/ja/transactd/client/sdk/doc/) (Japanese)
63
+ * Some sample codes are in `source/bzs/example`.
458
64
 
459
- To make Transactd query XML file(s), we need the querybuilder program.
460
- But querybuilder has not been released yet. It will be released soon.
461
65
 
462
66
 
463
-
464
- About the license of Transactd Plugin
67
+ License
465
68
  -------------------------------------------------------------------------------
466
69
  According to the license of MySQL/MariaDB, Transactd Plugin can be used under
467
70
  General Public License (GPLv2). The license information is in COPYING.
468
71
 
469
-
470
-
471
- About the license of Transactd clients
472
- -------------------------------------------------------------------------------
473
72
  You can select the license of Transactd clients from General Public License
474
73
  (GPLv2) or commercial license.
475
74
 
476
- * The license information of GPLv2 is in COPYING file.
477
- * You can examine a commercial license which not restricted by GPLv2 if wants.
478
- * Please see BizStation website about the details of licenses.
479
- [BizStation website](http://www.bizstation.jp/en/transactd/support/)
75
+ See also [Transactd clients OSS Exception](
76
+ http://www.bizstation.jp/en/transactd/support/ossex.html) for OSS projects which
77
+ is not subject to GPLv2.
480
78
 
481
- See also "Transactd clients OSS Exception" for OSS projects not subject to GPLv2.
482
- - [Transactd clients OSS Exception](http://www.bizstation.jp/en/transactd/support/ossex.html)
79
+ * [Transactd license](http://www.bizstation.jp/en/transactd/support/license.html)
80
+ * [Transactd license FAQ](
81
+ http://www.bizstation.jp/en/transactd/support/license_faq.html)
483
82
 
484
83
 
485
84
 
486
85
  Bug reporting, requests and questions
487
86
  -------------------------------------------------------------------------------
488
- * If you find any bugs or if you have any requests, please send it to Issues
489
- tracker on github. It requires github account(free).
490
- - [Transactd Issues](https://github.com/bizstation/transactd/issues)
491
- * If you have any questions, please see our website or send to Issues tracker
492
- on github above.
493
- - [Transactd Documents](http://www.bizstation.jp/ja/transactd/documents/)
494
- - [Transactd License/Support](http://www.bizstation.jp/ja/transactd/support/)
495
-
496
-
497
-
498
- ********************************************************************************
499
-
500
- The copyrights of products related to Transactd Plugin and clients are below.
501
-
502
- ********************************************************************************
503
- The following software may be included in Transactd Plugin and Client:
504
- Boost Software License - Version 1.0 - August 17th, 2003
505
-
506
- Permission is hereby granted, free of charge, to any person or organization
507
- obtaining a copy of the software and accompanying documentation covered by
508
- this license (the "Software") to use, reproduce, display, distribute,
509
- execute, and transmit the Software, and to prepare derivative works of the
510
- Software, and to permit third-parties to whom the Software is furnished to
511
- do so, all subject to the following:
512
-
513
- The copyright notices in the Software and this entire statement, including
514
- the above license grant, this restriction and the following disclaimer,
515
- must be included in all copies of the Software, in whole or in part, and
516
- all derivative works of the Software, unless such copies or derivative
517
- works are solely in the form of machine-executable object code generated by
518
- a source language processor.
519
-
520
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
521
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
522
- FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
523
- SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
524
- FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
525
- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
526
- DEALINGS IN THE SOFTWARE.
527
-
528
-
529
- ********************************************************************************
530
- The following software may be included in Transactd Plugin:
531
- HandlerSocket plugin for MySQL
532
-
533
- Copyright (c) 2010 DeNA Co.,Ltd.
534
- All rights reserved.
535
-
536
- Redistribution and use in source and binary forms, with or without
537
- modification, are permitted provided that the following conditions are met:
538
-
539
- * Redistributions of source code must retain the above copyright
540
- notice, this list of conditions and the following disclaimer.
541
- * Redistributions in binary form must reproduce the above copyright
542
- notice, this list of conditions and the following disclaimer in the
543
- documentation and/or other materials provided with the distribution.
544
- * Neither the name of DeNA Co.,Ltd. nor the names of its contributors
545
- may be used to endorse or promote products derived from this software
546
- without specific prior written permission.
547
-
548
- THIS SOFTWARE IS PROVIDED BY DeNA Co.,Ltd. "AS IS" AND ANY EXPRESS OR
549
- IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
550
- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
551
- EVENT SHALL DeNA Co.,Ltd. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
552
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
553
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
554
- OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
555
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
556
- OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
557
- ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
558
-
559
- ********************************************************************************
87
+ If you have any bug-reporting, requests or questions, please send it to
88
+ [Issues tracker on github](https://github.com/bizstation/transactd/issues).
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
@@ -90,7 +90,8 @@ endif()
90
90
  if(NOT COMMAND bz_get_win_bitness)
91
91
  macro(bz_get_win_bitness)
92
92
  if(WIN32)
93
- set(tmp_var "$ENV{PROGRAMFILES(x86)}")
93
+ set(TMP_ENV_PFX86_VALUENAME "PROGRAMFILES(X86)")
94
+ set(tmp_var "$ENV{${TMP_ENV_PFX86_VALUENAME}}")
94
95
  if(DEFINED tmp_var)
95
96
  set(BZ_WIN_BITNESS "64")
96
97
  else()
@@ -42,19 +42,14 @@ describe Transactd, 'datetime' do
42
42
  it 'get BtrTime' do
43
43
  i_nowtime = Transactd::getNowTime() # get now time as integer
44
44
  s_i_nowtime = Transactd::btrttoa(i_nowtime)
45
- s_i_nowtime2 = Transactd::btrttoa(i_nowtime, true)
46
45
  #p i_nowtime
47
46
  #p s_i_nowtime + ' ' + s_i_nowtime.encoding.to_s
48
- #p s_i_nowtime2 + ' ' + s_i_nowtime2.encoding.to_s
49
47
  nowtime = Transactd::BtrTime.new()
50
48
  nowtime.i = i_nowtime # get now time as BtrTime
51
49
  s_nowtime = Transactd::btrttoa(nowtime)
52
- s_nowtime2 = Transactd::btrttoa(nowtime, true)
53
50
  #p nowtime
54
51
  #p s_nowtime + ' ' + s_nowtime.encoding.to_s
55
- #p s_nowtime2 + ' ' + s_nowtime2.encoding.to_s
56
52
  expect(s_i_nowtime).to eq s_nowtime
57
- expect(s_i_nowtime2).to eq s_nowtime2
58
53
  end
59
54
 
60
55
  it 'get BtrDateTime' do
@@ -21,6 +21,8 @@
21
21
  require 'transactd'
22
22
  require 'thwait'
23
23
 
24
+ Transactd::setRecordValueMode(Transactd::RECORD_KEYVALUE_FIELDVALUE)
25
+
24
26
  def getEnv(valuename)
25
27
  return ENV[valuename] if ENV[valuename] != nil
26
28
  return ''