Typeform poolErrorHandler cant get triggered while error(eg. permission denied for table xx) occurs. for now, we enabled database password auto-rotation, once password changed, db will failed to retrieve data, I need to handle the error and establish a new connection with new password, I would like to use poolErrorHandler to detect while error happens, but it never get triggered,
const config = {
type: 'postgres',
synchronize: false,
poolErrorHandler: (err: any) => {
console.log('db-poolErrorHandler');
},
...
}
const connectionPool = await createConnection(config);
and only get UnhandledPromiseRejectionWarning: QueryFailedError
is there anything I missed or typeorm actually not support poolErrorHandler?