mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
appname added to pg connection string
This commit is contained in:
parent
2fee308185
commit
3f525cacc1
@ -70,6 +70,7 @@ const drivers = driverBases.map(driverBase => ({
|
||||
options = useDatabaseUrl
|
||||
? {
|
||||
connectionString: databaseUrl,
|
||||
application_name: 'DbGate',
|
||||
}
|
||||
: {
|
||||
host: authType == 'socket' ? socketPath || driverBase.defaultSocketPath : server,
|
||||
@ -78,6 +79,7 @@ const drivers = driverBases.map(driverBase => ({
|
||||
password,
|
||||
database: database || 'postgres',
|
||||
ssl,
|
||||
application_name: 'DbGate',
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user