Versions in this module Expand all Collapse all v4 v4.16.3 Sep 26, 2023 Changes in this version + const DefaultLockTable + const DefaultMaxRetries + const DefaultMaxRetryElapsedTime + const DefaultMaxRetryInterval + const DefaultMigrationsTable + var ErrMaxRetriesExceeded = errors.New("max retries exceeded") + var ErrNilConfig = errors.New("no config") + var ErrNoDatabaseName = errors.New("no database name") + func WithInstance(instance *sql.DB, config *Config) (database.Driver, error) + type Config struct + DatabaseName string + ForceLock bool + LockTable string + MaxRetries int + MaxRetryElapsedTime time.Duration + MaxRetryInterval time.Duration + MigrationsTable string + type YugabyteDB struct + func (c *YugabyteDB) Close() error + func (c *YugabyteDB) Drop() (err error) + func (c *YugabyteDB) Lock() error + func (c *YugabyteDB) Open(dbURL string) (database.Driver, error) + func (c *YugabyteDB) Run(migration io.Reader) error + func (c *YugabyteDB) SetVersion(version int, dirty bool) error + func (c *YugabyteDB) Unlock() error + func (c *YugabyteDB) Version() (version int, dirty bool, err error)