file

package
v0.0.0-...-0907076 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Migrations *source.Migrations
	// contains filtered or unexported fields
}

func New

func New(url string, logger *log.Logger) (*File, error)

func (*File) Close

func (f *File) Close() error

func (*File) DefaultParser

func (f *File) DefaultParser(p source.Parser)

func (*File) First

func (f *File) First() (version uint64, err error)

func (*File) GetDirections

func (f *File) GetDirections(version uint64) map[source.Direction]bool

func (*File) GetLocalVersion

func (f *File) GetLocalVersion() (version uint64, err error)

func (*File) GetUnappliedMigrations

func (f *File) GetUnappliedMigrations(version uint64) (versions []uint64)

func (*File) Next

func (f *File) Next(version uint64) (nextVersion uint64, err error)

func (*File) Open

func (f *File) Open(url string, logger *log.Logger) (source.Driver, error)

func (*File) Prev

func (f *File) Prev(version uint64) (prevVersion uint64, err error)

func (*File) ReadDown

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

func (*File) ReadMetaDown

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

func (*File) ReadMetaUp

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

func (*File) ReadName

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

func (*File) ReadUp

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

func (*File) Scan

func (f *File) Scan() error

func (*File) WriteMetadata

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

Jump to

Keyboard shortcuts

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