-
Notifications
You must be signed in to change notification settings - Fork 57
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
WIP: Create a Django backend adapter for CockroachDB #14
Conversation
Still can't get past the initial database setup but makes some progress.
I tried to make it work but cockroachdb/cockroach#5194 is not only blocker for Django ORM. I tried to make it work and schema changes in transactions are also a problem. Only turning off transactions during migrations could make Django work with cockroach. |
@don-mums there are several other blocking issues:
See: https://gist.github.com/pirate/f2931acd97d52242756d85d52b42e8bd |
Some of the features that need to be supported by cockroachdb inorder to work with
|
From a quick glance, it looks like CockroachDB now supports the UUID datatype. |
is any update with that ? Is any way how we could help ? |
We've made progress on some of the features that django needs, but some of the big ones are still open (including column type changes and deferrable constraints). If you want to help out the issues linked in #14 (comment) would be a good place to start. |
Is anyone actively looking at this? It would make CockroachDB immensely more usable and capable of powering thousands of Django dashboards. |
Thanks for this amazing work , I would like know what is the current state or status about this driver to django ?. |
I spoke with someone at CockroachDB about Django support recently and it sounds like due to the sheer volume of work on their plate, they're focusing on paid customer feature requests first (which is understandable for a growing startup). If any of your companies really want Django support in CockroachDB, try to advocate to your managers to pay for the startup/enterprise versions to help speed things along! |
Thanks for your comments . |
@omidraha No news. Cockroach Labs has no plans to work on this any time soon. In general, we don't have the resources to support every open-source framework out there, and we expect support for most platforms to be driven by the community instead of built by Cockroach Labs. |
Any updates for this? |
@rkruze has been looking into this. |
Thank you for the great open source software and all the excellent work put into this. However, when I read
I'd expect to anything from postgresql be working with the cockroachdb out of the box.
will make me to think such work is being put on the framework or app developers, the app/framework devs are simply using a PostgreSQL driver to build the ORM and if cockroachdb is compatible with PostgreSQL then they should not have anything else to work on. I believe Django does uses very specific PostgreSQL features and has a great recommendation for such database, but things like #14 (comment) seems to be pretty standard PostgreSQL stuff that people would expect from a "PostgreSQL-compatible driver or ORM". In any case, again I hope my comment doesn't come aggressive or showing any undermining the great effort on this project. If Django gets supported, I'll be happy to do beta testing on some of my projects. |
@Alir3z4 I have an initial version of a Django backend that is doing some slight modifications on top of the Postgres backend. You can find that backend here: https://github.com/cockroachlabs/cockroach-django I was able to complete the initial tutorial with this backend. Let me know if you run into any issues. Thanks! |
@rkruze Great job. I tried it on one small project and except one refactoring it works great and one issue. cockroachdb/django-cockroachdb#1 Since you cannot nest |
This can be closed in favor of https://github.com/cockroachdb/cockroach-django. |
@timgraham Yep, we can close this PR in favor of the other repo We should also think about whether it makes sense to continue to have this |
(+1 for renaming this repo to |
Hey @bdarnell , I've been looking at your approach for achieving compatibility with django and I think it can be applied for another 'newsql' db. Would you be interested in checking this out? |
Start following the Django tutorial and try to get the resulting app running on CockroachDB. This doesn't work yet, but it's a start. Only the last commit in this branch is really interesting.
Progress is currently blocked on cockroachdb/cockroach#4357
This branch also deletes the old SQL driver now that we've switched to the postgresql protocol.