Versions in this module Expand all Collapse all v4 v4.0.12 Feb 21, 2024 Changes in this version + const NilVersion + var ErrLocked = fmt.Errorf("can't acquire lock") + var ErrNotLocked = fmt.Errorf("can't unlock, as not currently locked") + func CasRestoreOnErr(lock *atomic.Bool, o, n bool, casErr error, f func() error) error + func GenerateAdvisoryLockId(databaseName string, additionalNames ...string) (string, error) + func List() []string + func Register(name string, driver Driver) + type Driver interface + Close func() error + Drop func() error + Lock func() error + Open func(url string) (Driver, error) + Run func(migration io.Reader) error + SetVersion func(version int, dirty bool) error + Unlock func() error + Version func() (version int, dirty bool, err error) + func Open(url string) (Driver, error) + type Error struct + Err string + Line uint + OrigErr error + Query []byte + func (e Error) Error() string