Releases: allisson/go-pglock
Releases · allisson/go-pglock
v3.0.0
Fix readme code
v2.0.1 fix: fix readme code (#7)
Update Locker interface
Locker interface now receives a context and the id must be pass on NewLock function.
BREAKING CHANGE: Locker interface has changed.
Include mock for Locker interface
v1.1.0 Include mock for Locker interface (#4)
Update Lock to receive a sql.Conn
This is a major version with incompatible API changes.
- Update Lock to receive a sql.Conn to avoid this https://engineering.qubecinema.com/2019/08/26/unlocking-advisory-locks.html
Add sync.Mutex on Lock struct
v0.1.1 Add sync.Mutex on Lock struct (#2)
First release
- Add Locker interface and Lock implementation.
- Update readme with code example.