DATA-DOG / go-txdb

Immutable transaction isolated sql driver for golang
Other
667 stars 48 forks source link

Consider supporting the sql.Connector interface #40

Closed flimzy closed 12 months ago

flimzy commented 3 years ago

If this package were to satisfy the driver.Connector interface, it would no longer be necessary to register a driver for every new instance, which could make certain test patterns much simpler.

I'd be happy to submit a PR if it's likely to be accepted.

l3pp4rd commented 3 years ago

Hi, that would be very welcome, thanks!

lopezator commented 12 months ago

Hey! This is the new way to write sql drivers, and I need I would need this to wrap txdb inside my own wrapper (adding retrial functionality, for example).

See:

https://pkg.go.dev/database/sql/driver

The driver interface has evolved over time. Drivers should implement Connector and DriverContext interfaces.

Any reason why #41 development stopped? Can we recover it somehow?