Git Product home page Git Product logo

dbapi-plugin-demo's Introduction

DBApi插件开发案例

DBApi 插件开发案例

概述

随着DBApi的版本更新,插件也会随版本更新,请查看对应版本的插件demo

使用方式

<dependency>
    <groupId>com.gitee.freakchicken.dbapi</groupId>
    <artifactId>dbapi-plugin</artifactId>
    <version>3.1.1</version>
    <scope>provided</scope>
</dependency>

DBApi版本与dbapi-plugin版本对应关系

不同版本的DBApi使用的插件必须依赖相应版本的dbapi-plugin.jar,版本对应关系如下

DBApi版本 dbapi-plugin版本
2.3.1 2.3.1
2.3.2 2.3.2
3.0.0 3.0.0
3.1.1 - 3.2.0 3.1.1

注意

从DBAPI 3.1.1版本开始,插件编写需要手动注册

resources目录下新建文件夹META-INF,再在META-INF文件夹下新建services 文件夹

META-INF/services目录下新建文件com.gitee.freakchicken.dbapi.plugin.CachePlugin,并在此文件中填写编写的缓存插件的java类名

META-INF/services目录下新建文件com.gitee.freakchicken.dbapi.plugin.TransformPlugin,并在此文件中填写编写的数据转换插件的java类名

META-INF/services目录下新建文件com.gitee.freakchicken.dbapi.plugin.AlarmPlugin,并在此文件中填写编写的告警插件的java类名

dbapi-plugin-demo's People

Contributors

freakchick avatar chickengone 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.