fauna / faunadb-python

Python driver for Fauna v4 (deprecated)
https://docs.fauna.com/fauna/v4/
Other
123 stars 25 forks source link

Usage with Django ORM #193

Open 1oglop1 opened 3 years ago

1oglop1 commented 3 years ago

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 commented 2 years ago

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

faunaee commented 2 years ago

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

1oglop1 commented 2 years ago

@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 commented 2 years ago

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).