Closed lpar closed 4 years ago
Yes, but probably not how you are hoping.
Go modules supports importing multiple versions of the same package. You would have to establish a pgx v3 connection for tern/migrate
. It can coexist with v4
but it doesn't interoperate cooperate.
It'd be fairly simple to upgrade tern to use pgx v4 -- it just hasn't been a priority since it won't really benefit the standalone CLI tool (and that's what I use on a daily basis).
Fair enough, though you do also say that pgx v3 is unsupported :-)
I've opted for using the database/sql
wrappers and go-migrate for now.
Is it possible to use
tern/migrate
to embed migration functionality into an application that usespgx/v4
andpgxpool
?