migrations

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CRDBMigrations = migrate.NewManager()

CRDBMigrations implements a migration manager for the CRDBDriver.

Functions

This section is empty.

Types

type CRDBDriver

type CRDBDriver struct {
	// contains filtered or unexported fields
}

CRDBDriver implements a schema migration facility for use in SpiceDB's CRDB datastore.

func NewCRDBDriver

func NewCRDBDriver(url string) (*CRDBDriver, error)

NewCRDBDriver creates a new driver with active connections to the database specified.

func (*CRDBDriver) Version

func (apd *CRDBDriver) Version() (string, error)

Version returns the version of the schema to which the connected database has been migrated.

func (*CRDBDriver) WriteVersion

func (apd *CRDBDriver) WriteVersion(version, replaced string) error

WriteVersion overwrites the value stored to track the version of the database schema.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL