Hi Daniel! I am also working with Arrow and Ktor. Bob is right, ORMs are tough to get to work with pure FP, but there are some ways to make this work. I can help you get things kickstarted if you're interested. I should have some time in a couple of days. Feel free to reach out.
😍 2
a
Alpha Ho
02/08/2020, 5:21 AM
May I tag along and join the discussion? I am very interested in this topic.
Alpha Ho
02/08/2020, 5:24 AM
the current way we use in our project is to only rely on ORM to persist and retrieve the object for us, without using the ID generation part.(For example, if the ID field is null, it would usually generate a auto-incremented ID and assign to the object)
Alpha Ho
02/08/2020, 5:25 AM
it’s a bit like serializing/deserializing into/from json, but it’s against DB instead
Alpha Ho
02/08/2020, 5:27 AM
I’ve been wondering how other projects would do it in which way
m
mattmoore
02/08/2020, 6:47 AM
Absolutely! I've been thinking of setting up a channel around this topic. Might make sense to finally do just that! 🙂
👍 2
mattmoore
02/08/2020, 6:51 AM
Created a channel #practical-functional-programming
🚀 1
😂 2
t
TormentedDan
02/08/2020, 4:21 PM
@mattmoore Thanks! Happy to do that. Also check my reply to Bob Glamm to read more about what I've tried.