Package com.alibaba.druid.proxy

Examples of com.alibaba.druid.proxy.DruidDriver.connect()


    public void test_0() throws Exception {
        String url = "jdbc:wrap-jdbc:filters=default,commonLogging,log4j:name=preCallTest:jdbc:fake:c1";
        Properties info = new Properties();
        DruidDriver driver = new DruidDriver();
        Connection conn = driver.connect(url, info);
        Assert.assertNotNull(conn);
        Assert.assertEquals("c1", conn.getCatalog());

        conn.setCatalog("c2");
        Assert.assertEquals("c2", conn.getCatalog());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.