django-environ icon indicating copy to clipboard operation
django-environ copied to clipboard

db support for CockroachDB

Open stevewilliamsuk opened this issue 1 year ago • 1 comments

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.

stevewilliamsuk avatar Nov 08 '23 09:11 stevewilliamsuk

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

stevewilliamsuk avatar Nov 15 '23 11:11 stevewilliamsuk