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

Usage with Django ORM #193

Open
1oglop1 opened this issue Aug 9, 2021 · 4 comments
Open

Usage with Django ORM #193

1oglop1 opened this issue Aug 9, 2021 · 4 comments

Comments

@1oglop1
Copy link

1oglop1 commented Aug 9, 2021

Hi, I've been reading about the Fauna and it looks very promising.

However, I maintain several Django applications and I wonder what would it take to integrate the Fauna clients with Django ORM so that the application does not require massive refactoring?

Thank you.

@klauss194
Copy link

I have the same question. It's a pitty the Fauna team doesn't check this repo

@faunaee
Copy link
Contributor

faunaee commented Dec 17, 2021

If you can detail the problems that you are encountering, that would help us develop appropriate solutions.

@1oglop1
Copy link
Author

1oglop1 commented Dec 18, 2021

@faunaee I'm not sure how familiar are you with Django but there is a concept of "backends" to integrate python SQL client

It is possible to use GraphQL with graphene-django built on top of graphene another option is Ariadne

However, both solutions expect a typical SQL backend, while Fauna requires a Driver to communicate with Fauna API.

There is also another very popular ORM project SQL Alchemy that has been integrated with graphene.

It would be great if Fauna docs could provide guidance on integrating any of these popular solutions together. Or ideally, if Fauna can provide a package that developers would need to install. I believe this would help to raise the popularity of using Fauna among the python developers.

@faunaee
Copy link
Contributor

faunaee commented Dec 20, 2021

Thanks for the feedback!

Since Fauna is a "NoSQL" database, and its query philosophy differs notably from SQL's, none of the SQL integrations is going to be helpful.

We're primarily database developers, and not Django developers. So it might be best to look for community-driven integrations until we can provide something ourselves (which could be quite a long way off).

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

No branches or pull requests

3 participants