Mojicode / chainsqld

ChainSQL: the collaboration of blockchain and database

Home Page:http://www.chainsql.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chainsql

Overview

Basing the ripple's source code, we add chainsql's own database modules. The DB operating log will be stored in the ripple chain, then you can acquire the visual data in traditional DB.

Details of ChainSQL

By setting the sync_tables, sync_db and auto_sync, you will restore the real DB tables you wanted from block chain. You can set the DB type arbitrarily, includeing mysql, sqlite, oracle and so on.

Defined three new transaction types for the DB operation, named sqlStatement, tableListSet and sqlTransaction. sqlStatement is used to insert, update or delete records, tableListSet is used to create a table and other operations to the table-self, sqlTransaction is used to operator a set of DB sql clause in one blockchain's transaction.

You can operate the DB or send DB operations to the block chain by the fowlling foue ways.

  1. RPC API , supplied by the RPC modules.
  2. Web sockets API, developed in javascript and java. Refer API in javascript and API in java .
  3. Commandline, access to the node directly.
  4. By kingshrad, using db's primitive sql clause. Refer Access by sql.

The table module send data request to other nodes and sort the tx datas from other nodes, then give the right transaction data to the misc modules. This module also seeks every ledger in local block chain to get the compatible table data to send back to the required nodes.

The misc module analysis transaction data to get the real sql, then operator the DB ussing these real sql sentences.

Further more, storage modules make you check the DB before sending tx data to the block chain, this makes it possible if we can operate DB timely.

If you want to get more infomation about this productioon ,please access the site www.chainsql.net.

Version

On updating our version or releasing new functions, the RELEASENOTES will be updated for the detail description.

Setup

Refer the Setup for details.

Compile

Refer the Builds directory for details, we introduce the detail compiling steps in several OS systems.

License

ChainSQL is under the GNU General Public License v3.0. See the LICENSE directory for details.

Contact Us

Email: chainsql@peersafe.info

Wechat: scan the QR below to follow PeerSafe, and then send chainsql, you will receive the QR image for ChainSQL community.

PeerSafe Wechat QR code:

PeerSafe

About

ChainSQL: the collaboration of blockchain and database

http://www.chainsql.net

License:Other


Languages

Language:C++ 52.2%Language:C 29.5%Language:Objective-C 8.3%Language:Java 4.6%Language:Python 2.2%Language:Ada 0.5%Language:Assembly 0.5%Language:CMake 0.5%Language:Makefile 0.3%Language:Shell 0.3%Language:HTML 0.2%Language:Pascal 0.2%Language:XSLT 0.2%Language:M4 0.2%Language:C# 0.2%Language:DIGITAL Command Language 0.1%Language:PHP 0.0%Language:Roff 0.0%Language:Emacs Lisp 0.0%Language:CLIPS 0.0%Language:Objective-C++ 0.0%Language:Batchfile 0.0%Language:Perl 0.0%Language:Vim Script 0.0%Language:CSS 0.0%Language:SAS 0.0%Language:Module Management System 0.0%