News for hackers. Stuff that matters.
Re:Crsql – Multi-writer and CRDT support for SQLite by Rygian on Tuesday November 15, 2022 @08:18AM (#33608767)
In your example, why does the INSERT in second row use the unqualified value (1), but the UPDATE in third row uses a wrapped value as crdt_set(2)?
Re:Crsql – Multi-writer and CRDT support for SQLite by CGamesPlay on Tuesday November 15, 2022 @08:49AM (#33609099)
Technically it isn't necessary to use the wrapped value when the wrapper function only takes a single parameter (because the virtual table could easily do the wrapping in this case). In the case of an insert, all wrappers only ever take a single parameter so it can be elided, but for updates some wrappers may require multiple parameters, so I opted for consistency and force all updates to use the wrapper methods, even when it only takes a single parameters.