Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use mongodb with sqlalchemy?

I can't find any information about connecting to mongodb in the documents of sqlalchemy and google search.

Is it possible to use mongodb with sqlalchemy? Thanks.

like image 824
LEONG Avatar asked Jan 22 '26 14:01

LEONG


2 Answers

as per sql alchem desc you cannot use it:

SQLAlchemy considers the database to be a relational algebra engine, not just a collection of tables. Rows can be selected from not only tables but also joins and other select statements; any of these units can be composed into a larger structure. SQLAlchemy's expression language builds on this concept from its core.

SQLAlchemy is most famous for its object-relational mapper (ORM), an optional component that provides the data mapper pattern, where classes can be mapped to the database in open ended, multiple ways - allowing the object model and database schema to develop in a cleanly decoupled way from the beginning.

The main goal of SQLAlchemy is to change the way you think about databases and SQL!

like image 187
profesor79 Avatar answered Jan 25 '26 20:01

profesor79


You may use MongoAlchemy instead.

like image 32
Can Arda Aydin Avatar answered Jan 25 '26 21:01

Can Arda Aydin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!