mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 02:25:59 +00:00
appname added to pg connection string
This commit is contained in:
@@ -70,6 +70,7 @@ const drivers = driverBases.map(driverBase => ({
|
|||||||
options = useDatabaseUrl
|
options = useDatabaseUrl
|
||||||
? {
|
? {
|
||||||
connectionString: databaseUrl,
|
connectionString: databaseUrl,
|
||||||
|
application_name: 'DbGate',
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
host: authType == 'socket' ? socketPath || driverBase.defaultSocketPath : server,
|
host: authType == 'socket' ? socketPath || driverBase.defaultSocketPath : server,
|
||||||
@@ -78,6 +79,7 @@ const drivers = driverBases.map(driverBase => ({
|
|||||||
password,
|
password,
|
||||||
database: database || 'postgres',
|
database: database || 'postgres',
|
||||||
ssl,
|
ssl,
|
||||||
|
application_name: 'DbGate',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user