-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Is there a way to access a connection and listen to its notifications directly from a PgPool instance?
I have a worker app that listens to various notification tasks and also updates the database when a task is done. At the moment I am using one PgPool instance plus a separate connection initialized using the postgres package.
final connection = PostgreSQLConnection(...);
connection.notifications.listen((event) async {
if (event.channel == _taskName) await _sendEmails();
});
final pool = PgPool(...);
await pool.execute('listen $_taskName;');
Please kindly provide a brief example if this is possible already.
Metadata
Metadata
Assignees
Labels
No labels