mongo

package
v0.0.0-...-0829b1e Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mongo

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

func New

func New(m migrator.Migrator) (*Mongo, error)

func (*Mongo) Check

func (mgo *Mongo) Check(verbose bool) error

func (*Mongo) CheckVersion

func (mgo *Mongo) CheckVersion(version version.Version) error

func (*Mongo) Migrate

func (mgo *Mongo) Migrate(ver version.Version, specific bool) error

func (*Mongo) Migrations

func (mgo *Mongo) Migrations() []migration.Migration

func (*Mongo) Name

func (mgo *Mongo) Name() string

func (*Mongo) Rollback

func (mgo *Mongo) Rollback(ver version.Version, specific bool) error

func (*Mongo) Versions

func (mgo *Mongo) Versions() []version.DataVersion

Jump to

Keyboard shortcuts

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