Documentation ¶
Index ¶
- type File
- func (f *File) Close() error
- func (f *File) DefaultParser(p source.Parser)
- func (f *File) First() (version uint64, err error)
- func (f *File) GetDirections(version uint64) map[source.Direction]bool
- func (f *File) GetLocalVersion() (version uint64, err error)
- func (f *File) GetUnappliedMigrations(version uint64) (versions []uint64)
- func (f *File) Next(version uint64) (nextVersion uint64, err error)
- func (f *File) Open(url string, logger *log.Logger) (source.Driver, error)
- func (f *File) Prev(version uint64) (prevVersion uint64, err error)
- func (f *File) ReadDown(version uint64) (r io.ReadCloser, identifier string, fileName string, err error)
- func (f *File) ReadMetaDown(version uint64) (r io.ReadCloser, identifier string, fileName string, err error)
- func (f *File) ReadMetaUp(version uint64) (r io.ReadCloser, identifier string, fileName string, err error)
- func (f *File) ReadName(version uint64) (name string)
- func (f *File) ReadUp(version uint64) (r io.ReadCloser, identifier string, fileName string, err error)
- func (f *File) Scan() error
- func (f *File) WriteMetadata(files map[string][]byte) error
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 (*File) DefaultParser ¶
func (*File) GetLocalVersion ¶
func (*File) GetUnappliedMigrations ¶
func (*File) ReadMetaDown ¶
func (*File) ReadMetaUp ¶
Click to show internal directories.
Click to hide internal directories.