Default knex connection.application_name
Signed-off-by: Brian Forbis <bforbis@athenahealth.com>
This commit is contained in:
@@ -268,6 +268,12 @@ export class DatabaseManager {
|
||||
client,
|
||||
);
|
||||
|
||||
if (client === 'pg') {
|
||||
(
|
||||
connection as Knex.PgConnectionConfig
|
||||
).application_name ||= `backstage_plugin_${pluginId}`;
|
||||
}
|
||||
|
||||
return {
|
||||
// include base connection if client type has not been overridden
|
||||
...(overridden ? {} : baseConnection),
|
||||
|
||||
Reference in New Issue
Block a user