Transactd client for ruby gem


License
GPL-2.0
Install
gem install transactd -v 3.8.4

Documentation

Transactd

Transactd manipulates internal database access method to MySQL/MariaDB directly, and provides the flexible high-speed database access.

In general, NoSQL has some limitations such as can not use the transaction. But Transactd will can use transaction in the same way as SQL.

Operation with SQL is that: parse SQL syntax in the server, decompose to row basis access methods, processing, and returns the result.

Transactd make it possible to control these row basis processing in the client side. And the API is very simple.

For example, following code shows how to print id and name of all records in users table.

db = Transactd::Database.new()
db.open('tdap://servername/dbname?dbfile=transactd_schema')

tb = db.openTable('users', Transactd::TD_OPEN_NORMAL)

tb.seekFirst()
while (tb.stat() == 0) do
  puts('id = ' + tb.getFVint('id').to_s() + ', name = ' + tb.getFVstr('name'))
  tb.seekNext()
end

tb.close()
db.close()

There are more APIs. See tutorial to overview main features of Transactd.

Install

Transactd consists of two modules, server plugin and client libraries. Server plugin is called "Transactd plugin", client libraries are called "Transactd clients".

You can build Transactd from source code. Or you can use pre-built binaries. See Transactd Install guide to building or installing Transactd.

Documents

License

According to the license of MySQL/MariaDB, Transactd Plugin can be used under General Public License (GPLv2). The license information is in COPYING.

You can select the license of Transactd clients from General Public License (GPLv2) or commercial license.

See also Transactd clients OSS Exception for OSS projects which is not subject to GPLv2.

Bug reporting, requests and questions

If you have any bug-reporting, requests or questions, please send it to Issues tracker on github.