Documentation ¶
Index ¶
- type Config
- type Stub
- func (s *Stub) Close() error
- func (s *Stub) DefaultParser(p source.Parser)
- func (s *Stub) First() (version uint64, err error)
- func (s *Stub) GetDirections(version uint64) map[source.Direction]bool
- func (s *Stub) GetLocalVersion() (version uint64, err error)
- func (s *Stub) GetUnappliedMigrations(version uint64) (versions []uint64)
- func (s *Stub) Next(version uint64) (nextVersion uint64, err error)
- func (s *Stub) Open(url string, logger *log.Logger) (source.Driver, error)
- func (s *Stub) Prev(version uint64) (prevVersion uint64, err error)
- func (s *Stub) ReadDown(version uint64) (r io.ReadCloser, identifier string, fileName string, err error)
- func (s *Stub) ReadMetaDown(version uint64) (r io.ReadCloser, identifier string, fileName string, err error)
- func (s *Stub) ReadMetaUp(version uint64) (r io.ReadCloser, identifier string, fileName string, err error)
- func (f *Stub) ReadName(version uint64) (name string)
- func (s *Stub) ReadUp(version uint64) (r io.ReadCloser, identifier string, fileName string, err error)
- func (s *Stub) Scan() error
- func (f *Stub) WriteMetadata(files map[string][]byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stub ¶
type Stub struct { Url string Instance interface{} Migrations *source.Migrations Config *Config // contains filtered or unexported fields }
func (*Stub) DefaultParser ¶
func (*Stub) GetLocalVersion ¶
func (*Stub) GetUnappliedMigrations ¶
func (*Stub) ReadMetaDown ¶
func (*Stub) ReadMetaUp ¶
Click to show internal directories.
Click to hide internal directories.