https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
m

myanmarking

05/13/2021, 1:37 PM
Why does generated code, for a column with a string returns Query<WrapperWithString> instead of Query<String?>. Any idea ?
c

Cedrick Cooke

05/13/2021, 4:06 PM
Query<T>
only accepts non-nullable values of
T
. I can't speak to intent for why the API is designed that way, but I suspect it's to force awareness of "query returned a row with a null value" vs "query did not return a row" when dealing with
executeAsOneOrNull
m

myanmarking

05/13/2021, 4:23 PM
makes sense. thanks±!