1. 程式人生 > 實用技巧 >開發自己的jdbc驅動——可選開發工具

開發自己的jdbc驅動——可選開發工具

前邊有簡單介紹過關於jdbc驅動開發的說明,以下是一些簡單的整理,提供關於快速開發jdbc的一些參考資料

驅動開發的一些說明

  • 需要實現的介面
    以下的介面是需要實現的,除過Driver 介面一般都會建立一個抽象類進行擴充套件
Statement
ResultSetMetaData
ResultSet
PreparedStatement
DatabaseMetaData
Connection
Driver

一些參考

drill 就是基於calcite進行的jdbc擴充套件開發,presto 因為自身就支援sql 操作,基於okhttp進行了包裝,apache Pinot 因為也支援
類sql,基於自己的java sdk 進行的包裝

參考資料

https://github.com/javacc/javacc
https://github.com/JSQLParser/JSqlParser
https://calcite.apache.org/
https://github.com/prestosql/presto/tree/master/presto-jdbc


https://github.com/apache/incubator-pinot/tree/master/pinot-clients/pinot-jdbc-client
https://github.com/apache/drill/tree/master/exec/jdbc
https://github.com/apache/calcite