Join Slack
Powered by
Any queries that write to any tables used by a que...
# squarelibraries
j
jw
03/29/2023, 11:40 PM
Any queries that write to any tables used by a query will get a callback to rerun. It's a really basic system, and it means you have to issue writes using SQLDelight
👍 1
h
hfhbd
03/30/2023, 6:15 AM
Actually, it depends on the driver and the database system. If the system supports notifications, you could write a driver reacting on the notifications. I did this for PostgreSQL:
https://github.com/hfhbd/postgres-native-sqldelight/blob/54518baeffb6d3c12dafdc0c143c93ed1132f619/postgres-native-sqldelight-driver/src/commonMain/kotlin/app/softwork/sqldelight/postgresdriver/PostgresNativeDriver.kt#L47
https://github.com/hfhbd/postgres-native-sqldelight/blob/54518baeffb6d3c12dafdc0c143c93ed1132f619/testing-sqldelight/src/commonTest/kotlin/app/softwork/sqldelight/postgresdriver/PostgresNativeSqldelightDriverTest.kt#L96
6
Views
Open in Slack
Previous
Next