https://kotlinlang.org logo
#ktor
Title
# ktor
g

george_racu

11/28/2019, 2:25 PM
Hello everyone, a beginner's question: Do we have an app startup hook that we can use to load some data in a database? Or is there such a functionality built into Ktor? Thanks 🙂
s

spand

11/28/2019, 2:30 PM
Cant you just do it in your main method?
g

george_racu

11/28/2019, 3:35 PM
I could probably do it there, I was wondering if there's something built into the framework.
s

spand

11/28/2019, 3:38 PM
https://ktor.io/servers/lifecycle.html but I see no reason to wait
g

george_racu

11/28/2019, 3:42 PM
Thanks 🙂