Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
honzajde
· 4y ago · 0 comments
How would you handle "db-notifications" with sqlite - to my knowledge this is a reason why you would need postgresql with its' (pg) NOTIFY
Comments
[–]
b3morales
4y ago
SQLite calls this an "update hook":
https://www.sqlite.org/c3ref/update_hook.html
[–]
hilti
4y ago
Exactly! Or in some cases I create a view - for example a highscore list - that is queried by a simple server-side script and sends the data as JSON to the client.
[–]
rockwotj
4y ago
SQLDelight had neat built in support for this
https://cashapp.github.io/sqldelight/