Skip to content

CBD-Forum/N0014-chainSql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

The source code is based on Rippled, you need to merge these source code files with Rippled source code files if you want to compile it.

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 two new transaction types for the DB operation, named sqlStatement and tableListSet. sqlStatement is used to insert, update or delete records, tableListSet is used to create a table and other operations to the table-self.

You can operate the DB or send DB operations to the block chain by using the RPC API functions, supplied by the RPC modules.

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.

See http://www.chainsql.net

License

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

About

ripple原有的代码没提交,可以直接从https://github.com/ripple/rippled下载

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published