Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a31de89

Browse files
Alterações no projeto para entrega
1 parent a46ad9f commit a31de89

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Postgres Playground
1+
## Postgres e Java Playground
22

33
[![](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/manoelcampos/java-postgres-playground)
44

‎src/main/java/com/example/App.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public static void main(String[] args) {
1515

1616
public App(){
1717
try(var conn = getConnection()){
18-
carregarDriverJDBC();
1918
listarEstados(conn);
2019
localizarEstado(conn, "PR");
2120
listarDadosTabela(conn, "produto");
@@ -87,12 +86,4 @@ private void listarEstados(Connection conn) {
8786
private Connection getConnection() throws SQLException {
8887
return DriverManager.getConnection(JDBC_URL, USERNAME, PASSWORD);
8988
}
90-
91-
private void carregarDriverJDBC() {
92-
try {
93-
Class.forName("org.postgresql.Driver");
94-
} catch (ClassNotFoundException e) {
95-
System.err.println("Não foi possível carregar a biblioteca para acesso ao banco de dados: " + e.getMessage());
96-
}
97-
}
9889
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /