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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.