1
0
forked from PGL/Clyde

using unix socket

This commit is contained in:
2024-03-06 10:52:11 +01:00
parent 212ab638a2
commit 38ed249150
3 changed files with 2 additions and 643 deletions

View File

@ -29,7 +29,7 @@ public class JdbcConfig {
public DataSource psqlSourceProd(){
DriverManagerDataSource source = new DriverManagerDataSource();
source.setDriverClassName("org.postgresql.Driver");
source.setUrl("jdbc:postgresql:clyde");
source.setUrl("jdbc:postgresql:clyde?socketFactory=org.newsclub.net.unix.AFUNIXSocketFactory$FactoryArg&socketFactoryArg=/var/run/postgresql/.s.PGSQL.5432");
source.setUsername("clyde");
return source;