public static Connection connect ( final Driver driver , final String url , final String user , final String pass ) throws SQLException { final Properties props = new Properties ( ) ; props . put ( "user" , user ) ; props . put ( "password" , pass ) ; return driver . connect ( url , props ) ; }
Returns connection using given |driver| .