sql >> Database >  >> RDS >> PostgreSQL

Hoe configureer ik HikariCP voor postgresql?

Je hebt een voorbeeld op de HikariCP-configuratiewikipagina

 Properties props = new Properties();

props.setProperty("dataSourceClassName", "org.postgresql.ds.PGSimpleDataSource");
props.setProperty("dataSource.user", "test");
props.setProperty("dataSource.password", "test");
props.setProperty("dataSource.databaseName", "mydb");
props.put("dataSource.logWriter", new PrintWriter(System.out));

HikariConfig config = new HikariConfig(props);
HikariDataSource ds = new HikariDataSource(config);


  1. Dynamische SQL-resultaten in tijdelijke tabel in SQL Stored-procedure

  2. MySql-verschil tussen twee tijdstempels in dagen?

  3. TOON TABELLEN in MariaDB

  4. C#:Oracle Data Type Equivalentie met OracleDbType