stub

package
v2.36.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct{}

type Stub

type Stub struct {
	Url        string
	Instance   interface{}
	Migrations *source.Migrations
	Config     *Config
	// contains filtered or unexported fields
}

func (*Stub) Close

func (s *Stub) Close() error

func (*Stub) DefaultParser

func (s *Stub) DefaultParser(p source.Parser)

func (*Stub) First

func (s *Stub) First() (version uint64, err error)

func (*Stub) GetDirections

func (s *Stub) GetDirections(version uint64) map[source.Direction]bool

func (*Stub) GetLocalVersion

func (s *Stub) GetLocalVersion() (version uint64, err error)

func (*Stub) GetUnappliedMigrations

func (s *Stub) GetUnappliedMigrations(version uint64) (versions []uint64)

func (*Stub) Next

func (s *Stub) Next(version uint64) (nextVersion uint64, err error)

func (*Stub) Open

func (s *Stub) Open(url string, logger *log.Logger) (source.Driver, error)

func (*Stub) Prev

func (s *Stub) Prev(version uint64) (prevVersion uint64, err error)

func (*Stub) ReadDown

func (s *Stub) ReadDown(version uint64) (r io.ReadCloser, identifier string, fileName string, err error)

func (*Stub) ReadMetaDown

func (s *Stub) ReadMetaDown(version uint64) (r io.ReadCloser, identifier string, fileName string, err error)

func (*Stub) ReadMetaUp

func (s *Stub) ReadMetaUp(version uint64) (r io.ReadCloser, identifier string, fileName string, err error)

func (*Stub) ReadName

func (f *Stub) ReadName(version uint64) (name string)

func (*Stub) ReadUp

func (s *Stub) ReadUp(version uint64) (r io.ReadCloser, identifier string, fileName string, err error)

func (*Stub) Scan

func (s *Stub) Scan() error

func (*Stub) WriteMetadata

func (f *Stub) WriteMetadata(files map[string][]byte) error

Jump to

Keyboard shortcuts

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