How to configure Loco to use MongoDB as the database? #341
Closed
magicfive2023
started this conversation in
General
Replies: 1 comment
-
@magicfive2023 you can't, loco uses sea-orm under the hood, here you can what drivers(sql servers) is supported by sea-orm. But you can add a new "state" or extension to the app context, in this way you need to choose some rust mongodb driver, makes your own connection and pool and passes as reference to the axum router as you can see here and here So bad so true, keep it in mind, loco is a opinative but dynamic approach to develop web app's. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to configure Loco to use MongoDB as the database? Could you provide an example project?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions