Provide a datasource proxy that can inject your own logic into all queries
Clone or download

README.md

datasource-proxy

Build Status Maven Central Download

About

Provide proxy classes for JDBC API to intercept executing queries and methods.

Versions

  • 2.x (Under development)

    • Java8 baseline.
    • master branch
  • 1.x

    • Works with JDK1.6+ (works well with Java8).
    • 1.x branch

User Guide

Maven

<dependency>
  <groupId>net.ttddyy</groupId>
  <artifactId>datasource-proxy</artifactId>
  <version>[LATEST_VERSION]</version>
</dependency>
  • latest version is: Maven Central
  • No dependencies to other libraries, everything is optional.
    • For example, if you want to use slf4j logger with SLF4JQueryLoggingListener, then you need slf4j library.
  • requires jdk1.6+

Snapshot is available via oss sonatype snapshot repository.

Related Projects

Examples:

Unit test support:

Javadoc