GithubHelp home page GithubHelp logo

imloama / chainsqld Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chainsql/chainsqld

0.0 1.0 0.0 97.63 MB

ChainSQL: the collaboration of blockchain and database

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

License: Other

CMake 0.62% Python 2.06% C 29.10% Shell 0.30% XSLT 0.22% C++ 57.43% HTML 0.24% Makefile 0.34% SAS 0.01% CLIPS 0.01% Pascal 0.19% Ada 0.48% Assembly 0.46% C# 0.15% Objective-C 8.10% Batchfile 0.01% M4 0.17% DIGITAL Command Language 0.08% Roff 0.03% Module Management System 0.01%

chainsqld's Introduction

English / 中文

Chainsql

Overview

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

Details of ChainSQL

Detailed online-document can be found here.

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

We 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 following four ways.

  1. RPC API , supplied by the RPC modules.
  2. Web sockets API, developed using javascript and java. Refer to API in javascript and API in java .
  3. Commandline, access to the node directly.
  4. By kingshrad, using db's primitive sql clause. Refer toAccess 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 sql module. This module also seeks every ledger in local block chain to get the compatible table data to send back to the required nodes.

The sql module analysis transaction data to get the real sql, then operate 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 that we can operate DB timely.

If you want to get more infomation about this production ,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 to the Setup for details.

Compile

Refer to 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: [email protected]

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

chainsqld's People

Contributors

ahbritto avatar alexdupre avatar anfedorov avatar bachase avatar cruanezhou avatar halberdholder avatar howardhinnant avatar jatchili avatar jedmccaleb avatar joelkatz avatar josh-ripple avatar justmoon avatar luleigreat avatar mellery451 avatar miguelportilla avatar mojicode avatar mtrippled avatar nbougalis avatar pdehne avatar rec avatar scottschurr avatar seelabs avatar shaxunyeman avatar ssmjfish avatar sublimator avatar vinniefalco avatar wilsonianb avatar wltsmrz avatar wufeipeng007 avatar ximinez avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.