15 lines
483 B
Java
15 lines
483 B
Java
package de.antco.projekt;
|
|
|
|
import java.sql.Connection;
|
|
import java.sql.DriverManager;
|
|
import java.sql.SQLException;
|
|
|
|
public class Database {
|
|
private static final String URL = "jdbc:postgresql://38.242.130.81:5555/postgres";
|
|
private static final String USER = "postgres";
|
|
private static final String PASSWORD = "tgewptivkpv7zlk5";
|
|
|
|
public static Connection getConnection() throws SQLException {
|
|
return DriverManager.getConnection(URL, USER, PASSWORD);
|
|
}
|
|
}
|