drogonframework / drogon

Drogon: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows
MIT License
11.44k stars 1.1k forks source link

Add mongodb and other nosql databases ODM ? #496

Closed FONQRI closed 2 years ago

FONQRI commented 4 years ago

Do you have any plan for adding mongodb, redis and other nosql ODM ?

an-tao commented 4 years ago

Yes, I'll gradually add support for them, maybe redis is the first.

Andrew199617 commented 4 years ago

@an-tao Could someone just use include the Mongodb C++ driver to their project and use that with Drogon. What support is missing to do that?

an-tao commented 4 years ago

Yes, you can do that. Drogon is open.

an-tao commented 4 years ago

But please notice that you'd better to use the asynchronous interface of Mongodb driver for high performance.

behindmagic9 commented 1 year ago

can you please tell how to modify model.json for using the mongodb ??