ever-co / feature-requests

Feature requests for Ever® Platforms

Home Page:https://ever.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connect to CockroachDB

gridworkz opened this issue · comments

Hi:

I gotta say - this is one of the best open source efforts to come along in a long time. Well done. I need to connect to CockroachDB and I just need to know which files I need to touch.

Cheers,
Dave

Hi @gridworkz thank you for the very warm words about our platforms!

If you are talking about Gauzy Platform (https://github.com/ever-co/gauzy), it should be pretty easy because it uses TypeORM and from my understanding CockroachDB compatible with PostgreSQL drivers and so you only need to change the connection string to point it into CockroachDB and it should be working out of the box (we did not try, interesting to know).

If you are talking about Ever Platform (https://github.com/ever-co/ever), it's much more work required to make it work well with CockroachDB because we do not actually use only TypeORM (in fact, we almost not use it at the moment), but also our customer mapper (called Pyro) which sits on top of mongoose and by default work with MongoDB. You can read a bit more about Pyro here: https://github.com/ever-co/ever/tree/develop/packages/core#pyro---custom-built-micro-framework

Hope that helps!