Java JDBC HSQL Connection getDbConnection()

Here you can find the source of getDbConnection()

Description

get Db Connection

License

Apache License

Declaration

public static Connection getDbConnection() throws SQLException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Main {
    public static Connection getDbConnection() throws SQLException {
        Connection rc = DriverManager.getConnection("jdbc:hsqldb:mem:testDb", "sa", "");
        return rc;
    }/*from  w w w.ja va  2  s  . c om*/
}

Related

  1. createConnection()
  2. createHSQLDBConnection(String hsqldbName)
  3. createSchemasForHSQLDB(String dbName, String[] schemaNames)
  4. getConnection()
  5. createTweetTable()
  6. getHSQLConnection()
  7. printSchema()
  8. stopHSQL()