Question from a exposed newbie After searching the...
# exposed
j
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
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
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