k1LoW / tbls

tbls is a CI-Friendly tool for document a database, written in Go.
MIT License
3.4k stars 166 forks source link

Support for CockroachDB #335

Open rhodee opened 2 years ago

rhodee commented 2 years ago

Greetings!

I attempted to run tbls with my cockroachdb instance and ran into the following with tbls running on my host:

 tbls doc "postgresql://root@127.0.0.1:26257/defaultdb?sslmode=disable" sql/schema
pq: unknown function: pg_get_triggerdef()

When running the same command within a container, it is unable to connect:

docker run --rm -v $PWD:/work ghcr.io/k1low/tbls doc "postgresql://root@127.0.0.1:26257/defaultdb?sslmode=disable" sql/schema
dial tcp 127.0.0.1:26257: connect: connection refused

Is adding CockroachDB support something you would consider? Thanks again and excited to try out this library!