Cockroach: sql: Driver & ORM List

Created on 14 May 2018  路  18Comments  路  Source: cockroachdb/cockroach

This is meta issue to serve as a list of known drivers and ORMs that we would like to support. I'll be keeping this top description updated, so if there are any other drivers and ORMs that are not on this list, please comment and I'll add them. Note that these are ordered alphabetically and not by priority. If there is a tracking issue for any of them, it will be linked to from here.

This list is not exhaustive (I just looked for ones we have open issues for), but I would like to keep this as up to date as possible, so it can be somewhat of a source of truth.

C++

Clojure

Elixir

Go

Java

.Net

  • npgsql

    • [ ] #25462

  • .NET Core 3.x and NPoco

    • User reports working well

Node.js

Perl

PHP

Python

Ruby

Rust

Multiplatform

A-sql-pgcompat C-enhancement O-community meta-issue

Most helpful comment

It's not on the list, but I recently started working with .NET Core 3.x and NPoco (via npsql, which is on the list). I'm surprised how well this works!

All 18 comments

Laravel eloquent: https://laravel.com/docs/master/eloquent (it should be similar with ActiveRecord)

Thanks @kocoten1992, added!

Perl DBIx::Class likely via the DBD::Pg driver

Thanks @abaumhauer, added!

Not a true ORM, but I would love to see CockroachDB support for Prisma

Would be great to see Knex

Added both Prisma and Knex to our list. Thanks!

Bram, Adding MeteorJS as per customer request.

@drewdeally Added to the list. Thanks.

hi @BramGruneir ! Would you consider adding sqitch to the list?

Against cockroachDB, a sqitch deploy fails with an unimplemented error:

$ sqitch --verbose deploy "db:pg://${USER}:${PASS}@${HOST}/$DB"

ERROR:  unimplemented at or near ","
DETAIL:  source SQL:

        SELECT c.change_id
             , c.script_hash
                 , c.change
             , c.project
             , c.note
             , c.committer_name
             , c.committer_email
             , to_char(c.committed_at AT TIME ZONE 'UTC', '"year":YYYY:"month":MM:"day":DD:"hour":HH24:"minute":MI:"second":SS:"time_zone":"UTC"') AS committed_at

Hi @irvingpop,

Of course! But it's a schema change management system, so I've added it to #25469 instead.

I'm pretty sure it's the to_char that we don't support. That's some old postgres syntax that is supposed to be deprecated but is still used all over. See #3781 for that main issue for that one.

@irvingpop I forgot to mention, we offer online schema change, so there might be less of a need for systems like sqitch. They're still useful for testing and dev, but there's now little need for these system in production.

See https://www.cockroachlabs.com/docs/v2.1/online-schema-changes.html.

awesome! thank you @BramGruneir !

We recently received another request about Prisma: http://forum.cockroachlabs.com/t/2575

Zendesk ticket #3229 has been linked to this issue.

Received a request recently for goqu - https://github.com/doug-martin/goqu

It's not on the list, but I recently started working with .NET Core 3.x and NPoco (via npsql, which is on the list). I'm surprised how well this works!

Closing this meta issue in favor of issues for individual tools

Was this page helpful?
0 / 5 - 0 ratings