Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SpannerMigrations = migrate.NewManager()
SpannerMigrations implements a migration manager for the Spanner datastore.
Functions ¶
This section is empty.
Types ¶
type SpannerMigrationDriver ¶
type SpannerMigrationDriver struct {
// contains filtered or unexported fields
}
SpannerMigrationDriver can migrate a Cloud Spanner instance The adminClient is required for DDL changes
func NewSpannerDriver ¶
func NewSpannerDriver(database, credentialsFilePath string) (SpannerMigrationDriver, error)
NewSpannerDriver returns a migration driver for the given Cloud Spanner instance
func (SpannerMigrationDriver) Close ¶
func (smd SpannerMigrationDriver) Close() error
func (SpannerMigrationDriver) Version ¶
func (smd SpannerMigrationDriver) Version() (string, error)
func (SpannerMigrationDriver) WriteVersion ¶
func (smd SpannerMigrationDriver) WriteVersion(version, replaced string) error
Click to show internal directories.
Click to hide internal directories.