Skip to content
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

Cockroach support #1040

Closed
cryptiklemur opened this issue Oct 18, 2017 · 11 comments · Fixed by #3692
Closed

Cockroach support #1040

cryptiklemur opened this issue Oct 18, 2017 · 11 comments · Fixed by #3692

Comments

@cryptiklemur
Copy link
Contributor

https://www.cockroachlabs.com

Its supposed to work with postgres clients, but there are some irregularities.

Example: information_schema.table_constraints does not have a table_catalog column.

@pleerock
Copy link
Member

so, its not 100% postgres compatible?... Is this database free and can be installed on local machine?

@cryptiklemur
Copy link
Contributor Author

Correct. There are apparently a couple idiosyncrasies

https://www.cockroachlabs.com/docs/stable/porting-postgres.html

@pleerock
Copy link
Member

Understood. Right now there are bunch of other more prioritable tasks I have and I cannot do it on my own. If you are interested in Cockroach then maybe its a good idea to contribute a new driver to TypeORM. Since changes aren't dramatic, it may be not a hard PR to implement.

@ThomasLohmann
Copy link

ThomasLohmann commented Jan 31, 2018

Hi there,

does anyone have running CockroachDB with TypeORM so far? And when how? It would be really good to hear!

Kind regards,
Thomas

@ThomasLohmann
Copy link

ThomasLohmann commented Feb 1, 2018

I have just posted it in the CockroachDB forum and opened an issue in the Cockroach/Github repo.

Here are the links:

https://forum.cockroachlabs.com/t/typeorm-support-for-node-js-apps/1332/9

cockroachdb/cockroach#22298

Maybe we will find a solution together :).

@pleerock
Copy link
Member

pleerock commented Feb 1, 2018

as @aequasi told CockroachDB is different on some schema synchronization features. Maybe temporary solution will be to disable schema sync and do it manually? (synchronize: false in connection options). But better of course if someone can contribute, find all differences between postgres and CockroachDB and provide a pr with fixes. Its not hard task Im sure.

@pleerock
Copy link
Member

Im going to close this issue since resolution is on cockroach side (cockroachdb/cockroach#22298)

@pleerock
Copy link
Member

released in 0.2.14

@pungggi
Copy link

pungggi commented Feb 25, 2019

any examples?

@pleerock
Copy link
Member

@pungggi
Copy link

pungggi commented Feb 25, 2019

Nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants