Coder Social home page Coder Social logo

jetbrick-jdbclog's Introduction

jetbrick-jdbclog

QQ群:310491655

This is a jdbc logger project for jetbrick, Support JDK6+.

Usage

DriverManagerDataSource ds = new DriverManagerDataSource();
ds.setDriverClassName("jetbrick.jdbclog.JdbcLogDriver");
ds.setUrl("jdbc:oracle:thin:@localhost:1521:orcl");
ds.setUsername("sa");
ds.setPassword("");

This JdbcLogDriver can auto identify following drivers.

  • MySQL
  • Oracle
  • JTDS
  • SQL Server 97/2000/2005
  • DB2
  • SyBase
  • PostgreSQL
  • HSqlDB
  • Derby
  • Informix
  • TimesTen
  • IBM-AS400
  • SAP DB
  • InterBase
  • JDBC-ODBC

If you use other driver, you can add real driver class name into connection url string. Pattern: CustomizeConnectionUrl = "jdbclog" ":" [DriverClassName] ":" ConnectionUrl. In customize connection url, the DriverClassName is optional.

For Oracle:

jdbclog:oracle.jdbc.driver.OracleDriver:jdbc:oracle:thin:@localhost:1521:orcl

If you use jdbc-odbc Bridge or Apache Derby, you must use customize connection url.

For Derby:

jdbclog::jdbc:derby:MyDB;user=test;password=test

Maven

<dependency>
    <groupId>com.github.subchen</groupId>
    <artifactId>jetbrick-jdbclog</artifactId>
    <version>1.0</version>
</dependency>

Downloads

License

Copyright 2013-2014 Guoqiang Chen. All rights reserved. 
Email: [email protected]

Licensed under the Apache License, Version 2.0 (the "License"); 
you may not use this file except in compliance with the License. 
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

jetbrick-jdbclog's People

Contributors

subchen avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

Forkers

rucky2013

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.