Ethereum JDBC driver implements a pure java, type 4 JDBC driver that executes SQL queries on Ethereum blockchain. It facilitates getting the data in and out of ethereum in JDBC compliant manner. The Ethereum JDBC driver can be used to perform ETL, BI reporting and analytics using the familiar SQL language.
It uses blkchn-sql-driver to parse the query and create corresponding logical plan. This logical plan is then converted into an optimized physical plan. The driver extends and implements the physical plan using corresponding web3j calls to connect to Ethereum. The driver then converts the returned objects to a JDBC compliant result set and return it to the user.
Dependency | Version |
---|---|
maven | 3.3.3 |
java | 1.8 |
web3j | 3.4.0 |
spark | 2.0.0 |
- Smart contract support -User can deploy smart contract and run its fuctions by using jdbc driver
- Ethereum with Spark
- Batch Transaction- Initiating multiple transactions in a batch
- Download or clone blkchn-sql-driver project
git clone https://github.com/Impetus/blkchn-sql-driver.git
- build blkchn-sql-driver using
mvn clean install -Pgen-sources
- Download sourcecode or use
git clone https://github.com/Impetus/eth-jdbc-connector.git
- build it using
mvn clean install
- Navigate to examples folder
- Run
Query.java
andInsert.java
for quick start
To use Ethereum JDBC connector in a maven project, add the following maven dependency in your project:
<dependency>
<groupId>com.impetus.eth</groupId>
<artifactId>eth-jdbc-driver</artifactId>
<version>${ethjdbcdriver.version}</version>
</dependency>
Build your project with the above changes to your pom.xml.
- Check how to connect to ethereum
- Supported queries
eth-jdbc-connector is backed by Impetus Labs - iLabs. iLabs is a R&D consulting division of Impetus Technologies. iLabs focuses on innovations with next generation technologies and creates practice areas and new products around them. iLabs is actively involved working on blockchain technologies, neural networking, distributed/parallel computing and advanced analytics using spark and big data ecosystem. iLabs is also working on various other Open Source initiatives.