DATA-DOG / go-txdb

Immutable transaction isolated sql driver for golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Postgres Example

Fyb3roptik opened this issue · comments

I have tried everything and for the life of me I cannot get Postgres to work. Can I get an example for connecting using postgres?

Thanks!

Hi, the postgres sql driver is also tested in txdb tests. That should be enough as an example. Just check the test.go files.

The issue for me was I am using go-pg and it does not use the sql.DB driver and instead uses its own. I might have a go at trying to integrate support for it here

well, txdb is only compatible with standard go sql library.