On Mon, Jun 29, 2015 at 7:32 AM, Josh Smeaton <josh.smea...@gmail.com>
wrote:

> I'm not quite up to date on XML in databases (I've never had to use XML in
> a database), but don't the majority of core backends support XML in some
> way? If so, I'd probably like to see an attempt to build out XML support
> such that all/most core databases could benefit from the new feature,
> rather than being locked away in contrib.postgres.
>

Heh...

https://github.com/django/django/blob/stable/1.3.x/django/db/models/fields/__init__.py#L1135

So, to answer your questions:
>
> Is this a project that;
> a) would be accepted - Probably, if someone were to implement it and drive
> it until quality was acceptable
> b) would be fairly straight forward and - I'm not sure how straightforward
> it would be. The addition of Lookups and Transforms will help tremendously
> though.
> c) would be useful to the wider community? - Not for me personally, but
> I'm sure there'd be others that would find good use for XML support.
> Hopefully we can get some more feedback to accurately determine that though.
>

Broadly, I agree with Josh.

Given that we have contrib.postgres, we should be aiming at 100% coverage
of PostgreSQL features in core (not saying that is possible or likely, but
it's an aspirational goal).

In cases where it is plausible to implement a feature for all backends, we
should aim to do that.

However, I don't think we should be cross platform at all costs. It would
be possible to implement XMLField as a light layer over TextField (hey - we
used to do exactly this), but if that's the only way to implement it, I
don't think we should implement it at all. I'm not in favour of
implementing known-to-be-slow design patterns for core features. Unless
SQLite and MySQL offer a native XML data type, with reasonably rich query
syntax, then I don't think a cross-platform is desirable.

Yours,
Russ Magee %-)

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAJxq84-fksB0S6bpvwj-tBTttiSaVmK5Vzx%2B9b7NrtGeFOWevw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to