File tree 2 files changed +1
-10
lines changed
src/main/java/com/example
2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change 1
- ## Postgres Playground
1
+ ## Postgres e Java Playground
2
2
3
3
[ ![ ] ( https://gitpod.io/button/open-in-gitpod.svg )] ( https://gitpod.io/#https://github.com/manoelcampos/java-postgres-playground )
4
4
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ public static void main(String[] args) {
15
15
16
16
public App (){
17
17
try (var conn = getConnection ()){
18
- carregarDriverJDBC ();
19
18
listarEstados (conn );
20
19
localizarEstado (conn , "PR" );
21
20
listarDadosTabela (conn , "produto" );
@@ -87,12 +86,4 @@ private void listarEstados(Connection conn) {
87
86
private Connection getConnection () throws SQLException {
88
87
return DriverManager .getConnection (JDBC_URL , USERNAME , PASSWORD );
89
88
}
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
- }
98
89
}
You can’t perform that action at this time.
0 commit comments