CockroachDB, has anyone tried it with elixir or postgrex

Has anyone tried the postgrex driver with CockroachDB? Or tried it with elixir?

I haven’t, but it seems that it should work [0], at least with this fork [1] of postgrex.

[0] https://github.com/cockroachdb/cockroach/issues/5582#issuecomment-278866729
[1] https://github.com/jumpn/postgrex

EDIT: just tried it, seems to be working.

1 Like

Using postgrex from hex causes this

[error] Postgrex.Protocol (#PID<0.249.0>) failed to connect:
          ** (Postgrex.Error) ERROR XX000 (internal_error):
              source name "t" not found in FROM clause

With {:postgrex, github: "jumpn/postgrex"} it works fine.

2 Likes