Versions in this module Expand all Collapse all v4 v4.16.0 Jan 14, 2022 Changes in this version + const DefaultMigrationsTable + var ErrDatabaseDirty = errors.New("database is dirty") + var ErrLockHeld = errors.New("unable to obtain lock") + var ErrLockNotHeld = errors.New("unable to release already released lock") + var ErrNilConfig = errors.New("no config") + var ErrNoDatabaseName = errors.New("no database name") + var ErrNoSchema = errors.New("no schema") + func WithInstance(instance *DB, config *Config) (database.Driver, error) + type Config struct + CleanStatements bool + DatabaseName string + MigrationsTable string + type DB struct + func NewDB(admin sdb.DatabaseAdminClient, data spanner.Client) *DB + type Spanner struct + func (s *Spanner) Close() error + func (s *Spanner) Drop() error + func (s *Spanner) Lock() error + func (s *Spanner) Open(url string) (database.Driver, error) + func (s *Spanner) Run(migration io.Reader) error + func (s *Spanner) RunFunctionMigration(fn source.MigrationFunc) error + func (s *Spanner) SetVersion(version int, dirty bool) error + func (s *Spanner) Unlock() error + func (s *Spanner) Version() (version int, dirty bool, err error) Other modules containing this package github.com/nokia/migrate