I am using the sample queries from official kotlin...
# squarelibraries
r
I am using the sample queries from official kotlin tutorial and even there also they are not passing any adapter https://kotlinlang.org/docs/multiplatform-mobile-ktor-sqldelight.html#generate-the-database-api
Screenshot 2023-07-21 at 5.12.35 PM.png
Screenshot 2023-07-21 at 5.13.45 PM.png
h
2.0.0 removed the default adapter for Boolean, so the docs needs to be updated.
r
Thanks, so I need to manually create and provide a ColumnAdapter. Also the generated classes have an unresolved boolean reference.
h
Ah yes, you need to add the fqn name, kotlin.Boolean or add the import too.
in sql file
1
And there is also an artifact
primitive-adapters
which contains a predefined BooleanAdapter
Wait, sorry, there is no booleanadapter...