{"id":15015283,"url":"https://github.com/impetus/fabric-jdbc-connector","last_synced_at":"2026-03-17T15:18:40.606Z","repository":{"id":57725195,"uuid":"137728458","full_name":"Impetus/fabric-jdbc-connector","owner":"Impetus","description":"Fabric JDBC connector implements a pure java, type 4 JDBC driver that executes SQL queries on Hyperledger fabric Blockchain.","archived":false,"fork":false,"pushed_at":"2018-12-11T06:31:28.000Z","size":428,"stargazers_count":18,"open_issues_count":0,"forks_count":11,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-06-03T21:13:00.567Z","etag":null,"topics":["blockchain","fabric","go","hyperledger","java","jdbc","jdbc-driver","sql"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Impetus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-18T08:40:37.000Z","updated_at":"2024-07-18T14:00:16.000Z","dependencies_parsed_at":"2022-09-11T20:21:25.968Z","dependency_job_id":null,"html_url":"https://github.com/Impetus/fabric-jdbc-connector","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Impetus/fabric-jdbc-connector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Impetus%2Ffabric-jdbc-connector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Impetus%2Ffabric-jdbc-connector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Impetus%2Ffabric-jdbc-connector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Impetus%2Ffabric-jdbc-connector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Impetus","download_url":"https://codeload.github.com/Impetus/fabric-jdbc-connector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Impetus%2Ffabric-jdbc-connector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260997976,"owners_count":23095015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","fabric","go","hyperledger","java","jdbc","jdbc-driver","sql"],"created_at":"2024-09-24T19:46:42.583Z","updated_at":"2026-03-17T15:18:40.568Z","avatar_url":"https://github.com/Impetus.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":" \n \nOverview \n========= \n[![Join the chat at https://gitter.im/Impetus/fabric-jdbc-connector](https://badges.gitter.im/Impetus/fabric-jdbc-connector.svg)](https://gitter.im/Impetus/fabric-jdbc-connector?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge) \n**[Join Google Group ](https://groups.google.com/forum/#!forum/fabric-jdbc-driver)**\n \nFabric JDBC connector implements a pure java, type 4 JDBC driver that executes SQL queries on Hyperledger fabric blockchain. It facilitates getting the data in and out of fabric in JDBC compliant manner. The Fabric JDBC Connector can be used to perform ETL, BI reporting and analytics using the familiar SQL language.  \n \nIt uses [blkchn-sql-driver](https://github.com/Impetus/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 function calls of [fabric-sdk-java](https://github.com/hyperledger/fabric-sdk-java) to interact with Fabric network. The driver then converts the returned objects to a JDBC compliant result set and return it to the user. \n \n \n\n# Tested with\n| Dependency | Version |\n|---|---|\n| maven | 3.3.3 |\n|java | 1.8 |\n|fabric-sdk-java | 1.1.0 |\n|spark|2.0.2|\n \nFeatures Added with Release 1.1.0\n=====\n* Created Spark Connector Module: Use spark connector to connect Spark with fabric.\n* Create User : allows creation of new user with certificate authority\n* Install Only : This option can be given with Create and upgrade chaincode syntax.\n* Instantiate Only : This option can be used with create chaincode syntax.\n* Upgrade Only: It can be used with upgrade chaincode syntax.   \n* Enrolment Certificate is stored in-memory. \n\nSupported Features  \n=============== \n\n- Querying on blocks, transactions, transaction actions and read write sets\n- Creating Assets\n- Querying Assets \n- Deleting Assets\n- Creating Asset schema\n- Dropping Asset schema  \n- Creating Chaincode\n- Upgrading Chaincode\n- Create User\n\nBuilding fabric-jdbc-connector\n==========================\n- [Download](https://github.com/Impetus/blkchn-sql-driver/archive/master.zip) or clone \u003cb\u003eblkchn-sql-driver\u003c/b\u003e project `git clone https://github.com/Impetus/blkchn-sql-driver.git`\n- build blkchn-sql-driver using `mvn clean install -Pgen-sources`\n- [Download](https://github.com/Impetus/fabric-jdbc-connector/archive/master.zip) \u003cb\u003efabric-jdbc-connector\u003c/b\u003e source code or use `git clone https://github.com/Impetus/fabric-jdbc-connector.git` \n- build it using `mvn clean install` \n\nGetting Started \n===============  \n\n\n- Navigate to [examples](https://github.com/Impetus/fabric-jdbc-connector/tree/master/fabric-jdbc-examples) folder \n- Run [`App.java`](https://github.com/Impetus/fabric-jdbc-connector/blob/master/fabric-jdbc-examples/src/main/java/com/impetus/fabric/example/App.java) for quick start \n \n \nFabric JDBC connector is a maven based project. It can be directly added as maven dependency in your project in the following manner : \n  \n  \n* Add below in dependency: \n  \n``` \n\u003cdependency\u003e \n\u003cgroupId\u003ecom.impetus.fabric\u003c/groupId\u003e \n\u003cartifactId\u003efabric-jdbc-driver\u003c/artifactId\u003e \n\u003cversion\u003e${fabricjdbcdriver.version}\u003c/version\u003e \n\u003c/dependency\u003e \n``` \n \nBuild your project with the above changes to your pom.xml. \n \n\nRecovering Disksapce from Docker \n=================================\nIf you have run example code or integration test. It will create docker images, that need to clean manually. it consume\n approximately 100 MB of space upon running integration test once.\n\nYou need to run these command to free up space.\n- remove exited docker process.  \n```\n    docker rm -v $(docker ps -a -q -f status=exited)\n```\n- remove images by giving chaincode name pattern as in below command   \n```\n    docker rmi -f `docker images|grep -i chncodefunc|awk '{ print $3 }'`\n    docker rmi -f `docker images|grep -i assettransfer|awk '{ print $3 }'`\n    docker rmi -f `docker images|grep -i sacc-1.0|awk '{ print $3 }'`\n```\n- Delete dangling volume occupied, if everything is clean, it will give message: \"requires a minimum of 1 argument\"  \n```\n    docker volume rm $(docker volume ls -qf dangling=true) \n```\n \nImportant Links \n=============== \n* [Fabric JDBC Connector Wikis](https://github.com/Impetus/fabric-jdbc-connector/wiki) \n \n  \n \nContribution \n============ \n* [Contribution Guidelines](https://github.com/Impetus/fabric-jdbc-connector/blob/master/CONTRIBUTING.md) \n \nAbout Us \n======== \nFabric JDBC Connector is backed by Impetus Labs - iLabs. iLabs is a R\u0026D consulting division of [Impetus Technologies](http://www.impetus.com). 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. \n \n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimpetus%2Ffabric-jdbc-connector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimpetus%2Ffabric-jdbc-connector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimpetus%2Ffabric-jdbc-connector/lists"}