MCPcopy Create free account
hub / github.com/apecloud/myduckserver / connect

Method connect

compatibility/mysql/java/MySQLTest.java:12–20  ·  view source on GitHub ↗
(String ip, int port, String user, String password)

Source from the content-addressed store, hash-verified

10 private List<Test> tests = new LinkedList<>();
11
12 public void connect(String ip, int port, String user, String password) {
13 try {
14 String url = "jdbc:mysql://" + ip + ":" + port + "/";
15 conn = DriverManager.getConnection(url, user, password);
16 st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
17 } catch (SQLException e) {
18 throw new RuntimeException(e);
19 }
20 }
21
22 public void disconnect() {
23 try {

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected