django-environ
django-environ copied to clipboard
db support for CockroachDB
I would like to propose a feature that django-eviron's db()
parser shall support CockroachDB
CockroachDB is a distributed quorum based database. Cockroach Labs have provided an idiomatic driver for Django.
This driver does under the hood use psycopg, so in theory a postresql:// connection string could be used with Env().db_url()
(I have not tried!) it is preferable to use the Cockroach driver as this improves resiliency and retry logic.
I am all too happy to submit the PR for this myself.
Would also add that it is worth considering support for djongo as well: https://www.mongodb.com/compatibility/mongodb-and-django#connect-django-and-mongodb-using-djongo