Tuesday, December 24, 2013

Re: Django ORM & DB backend coupling

On Tue, Dec 24, 2013 at 4:15 PM, Rakan Alhneiti
<rakan.alhneiti@gmail.com> wrote:
> Hello all,
>
> I was discussing the topic with a couple of my friends that Django's ORM is
> / is not tightly coupled with databases in general. My point of view was
> that django is not tightly coupled because you can write custom DB backends
> to deal with other sources of data such as a Restful API service while still
> taking advantage of the ORM.
> However, looking at the current architecture & implementation, i guess i can
> say that it is coupled because writing a custom backend would require you to
> write database-specific classes such as the DatabaseWrapper, Operations,
> Features .. etc.
>
> Is wiring Django's ORM with a Restful API service rather than MySQL or
> Postgresql a good idea? or the better one would be writing ORMs from scratch
> that are API-based rather than database-driven?
>
> Please share with me your thoughts on this topic.

You may want to take a look at a recent discussion at django-dev about
this subject

https://groups.google.com/forum/#!msg/django-developers/zlLCJ5HC3c8/7eFdmdUSDbsJ


--
Marc

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BDCN_vDwyBGnMGjgmD5D8U5m_-xaxd1LtqWgurUUQ-Dfte8jA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment