notify client of table changes (replacing polling)

30 views
Skip to first unread message
Message has been deleted

Hans

unread,
Dec 2, 2019, 4:06:48 PM12/2/19
to H2 Database
Hello,
given an H2 server and an H2 client (connected via TCP), is there a way to notify the client of table changes, rather than polling the table using SELECTs periodically?
(Unfortunately, CREATE TRIGGER only works on the server.)
Thanks in advance.

Evgenij Ryazanov

unread,
Dec 2, 2019, 11:26:25 PM12/2/19
to H2 Database
Hello.

No, there is no such feature in H2. Only some databases have different own callbacks and that functionality is not standardized, AFAIK the SQL Standard does not have such features.

You can try to write some own code in the trigger to send some messages to your clients using the separate connections not managed by H2.
Reply all
Reply to author
Forward
0 new messages