Graphql-engine: Add support for CockroachDB

Created on 8 Oct 2018  路  19Comments  路  Source: hasura/graphql-engine

Or any distributed/replicated SQL db alike...

other-dbs server enhancement longterm triag1-product-candidate

Most helpful comment

Hi everyone 馃憢 this is to let you know that we are aware of the community's request for support for CockroachDB. We will take this up in a few weeks 馃檪

All 19 comments

It is really cool!

would be interesting

CockroachDB doesn't support triggers at this moment.
Could Hasura implement event triggers without built-in DB support?

Even if that's possible, events won't be fired if you modify the DB directly.

https://github.com/cockroachdb/cockroach/issues/28296

Latest version of CockroachDB now offers support for experiential change feed.
https://www.cockroachlabs.com/docs/v19.1/changefeed-for.html

Could this be used instead of SQL triggers?
I'm not sure if current Hasura implementation assume that trigger is always available regardless of the database you use, though.

Is the only thing that's broken is webhooks for db change events? Does everything else work with CockroachDB ?

Hi everyone 馃憢 this is to let you know that we are aware of the community's request for support for CockroachDB. We will take this up in a few weeks 馃檪

Any update here?

any updates here?

Hey everyone, so we did an initial investigation and Hasura doesn't start on CockroachDB out-of-the-box because of Cockroach's different implementation of internal schema and lack of few json operators.

Although now we have more insights into what will go into supporting CockroachDB and we will update this issue when we have a technical spec ready.

any updates on this

please update, thank you!

@tirumaraiselvan sorry for the noise.
Do you have a draft technical spec somewhere already? Me and my team are willing to work on this (ofc with guidance, none of us know Haskell).

Plus one for support for CockroachDB! 馃槃

Any updates?

Or any distributed/replicated SQL db alike...

@orefalo Hasura does support YugabyteDB, which is a distributed SQL database with a Postgres-compliant API.

Here is a tutorial on using Hasura and YugabyteDB together.

Yugabyte has a hosted cloud offering that starts with 5GB of storage and 3 nodes on the free tier.

Hi everyone 馃憢 this is to let you know that we are aware of the community's request for support for CockroachDB. We will take this up in a few weeks 馃檪

any updates on this? Thank's!

I use CockroachDB at work and YugaByte for a personal project. Both are great until now, but also different. With YB you get better compatibility to Postgres and with CRDB you get a very easy management, scaling and stability (more mature than YB, bug not mature as PG).

In general, I prefer tools which I can use in both projects and it would be nice if hasura supports CRDB too. So, the question is, what prohibits usage of CRDB? It's the syntax or missing features like triggers?

As a workaround I can imagine to use custom resolvers to fetch/update CRDB for example with knex or some ORM. Is this the way to go until CRDB is supported?

CockroachDB doesn't support triggers at this moment.
Could Hasura implement event triggers without built-in DB support?

Even if that's possible, events won't be fired if you modify the DB directly.

I'm not hasura user yet, but I would like to ask which events are important here? Can it work for migrations?

Would Hasura support any PostgreSQL compatible databases like TiDB or PolarDB?

Vote for CockroachDB!
Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rikinsk-zz picture rikinsk-zz  路  3Comments

shahidhk picture shahidhk  路  3Comments

lishine picture lishine  路  3Comments

stereobooster picture stereobooster  路  3Comments

jjangga0214 picture jjangga0214  路  3Comments