Question from a exposed newbie
After searching the exposed documentation and google if have found everything from you cant serialize an exposed model to creating a data class to do the conversion, Can someone point me to the best way to serialize an exposed table to return json with Ktor.
e
Endre Deak
10/07/2022, 4:00 PM
I think the approach here would be:
Copy code
object FooTable // the table structure
class Foo // the serializable object model
fun toEntity(row: ResultRow) -> Foo
j
Jackie Whittle
10/07/2022, 4:07 PM
Very similar to what I did for insert, I am working on pulling the data now. Thanks for the quick response. It was very helpful