:sqldelight: SQL Delight 2.1.0 has been released: ...
# squarelibraries
j
sqldelight SQL Delight 2.1.0 has been released: https://github.com/sqldelight/sqldelight/releases/tag/2.1.0 sqldelight
πŸŽ‰ 15
πŸ‘πŸΌ 1
πŸ’― 5
πŸ‘πŸ½ 1
.wasm 10
πŸ‘ 20
πŸ‘πŸ» 1
p
Wasm support is πŸ”₯πŸ”₯πŸ”₯
βž• 2
m
Although it is not mentioned in the release notes this release contains breaking code changes. Code like this does not compile anymore:
Copy code
var primaryDevice: PrimaryDevice
        set(value) = queries.insertOrReplaceProperty(PRIMARY_DEVICE_KEY, value.toString())
Copy code
Return type mismatch: expected 'Unit', actual 'QueryResult<Long>'.
The reason is that the generated
insertOrReplaceProperty
method now returns the row count. See: https://github.com/sqldelight/sqldelight/pull/4578 To make this compile again you have to change the
=
to using
{}
https://github.com/sqldelight/sqldelight/issues/5750