Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plan to support mongodb for casdoor? #922

Open
maslow opened this issue Jul 28, 2022 · 6 comments · May be fixed by #1249
Open

Any plan to support mongodb for casdoor? #922

maslow opened this issue Jul 28, 2022 · 6 comments · May be fixed by #1249
Assignees
Labels
enhancement New feature or request

Comments

@maslow
Copy link

maslow commented Jul 28, 2022

We have an open source serverless project: https://github.com/labring/laf

laf wants to integrate casdoor as its built-in auth solution without importing a second type of database, that could keep laf as light as possible.

so do we have any plan to support mongodb for casdoor or how?

@casbin-bot
Copy link
Contributor

@casbin-bot casbin-bot added the enhancement New feature or request label Jul 28, 2022
@hsluoyz
Copy link
Member

hsluoyz commented Aug 17, 2022

@Resulte @qianxi0410 @wenxuan70 any thoughts about how to support MongoDB? We use XORM (https://casdoor.org/docs/basic/server-installation#configure-database) and it doesn't support MongoDB. In fact, most Go ORM frameworks don't support MongoDB. We need to find a way to support both RDBMS and MongoDB

@wenxuan70
Copy link
Contributor

The existing model layer operations are all SQL operations performed through the engine attribute in the adapter variable. If Casdoor needs to support MongoDB, the engine can be encapsulated in a layer, and the engine attribute is no longer strongly dependent on XORM framework.
But consider that MongoDB may not support some features in RDBMS, e.g., transactions.

@maslow
Copy link
Author

maslow commented Aug 18, 2022

But consider that MongoDB may not support some features in RDBMS, e.g., transactions.

MongoDb actually supports trasactions \ aggregations \ joins, many queries are even more powerful than RDBMS.

@wenxuan70
Copy link
Contributor

ok, I found it in here.

@ev1lQuark ev1lQuark linked a pull request Oct 30, 2022 that will close this issue
@hsluoyz
Copy link
Member

hsluoyz commented Jan 15, 2023

@maslow already requested this feature at XORM community: https://gitea.com/xorm/xorm/issues/2212

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants