Hello,
How to use LISTEN/NOTIFY with the UniDAC PostgreSQL provider ?
Can you please share any exemples ?
How to use LISTEN/NOTIFY with the UniDAC PostgreSQL provider
-
swierzbicki
- Posts: 451
- Joined: Wed 19 Jan 2005 09:59
Hello
For sending and getting notification, you should use TUniAlerter:
Getting:
Sending:
For sending and getting notification, you should use TUniAlerter:
Getting:
Code: Select all
begin
UniAlerter1.Events := 'pg_uni_alerter'; // any name
UniAlerter1.Start;
end;Code: Select all
begin
// second parameter is supported in PostgreSQL 9.0 and higher
UniAlerter1.SendEvent('pg_uni_alerter', 'message');
end;