Documentation ¶
Index ¶
- Constants
- func WithInstance(instance interface{}, config *Config) (database.Driver, error)
- type Config
- type Stub
- func (s *Stub) Close() error
- func (s *Stub) Drop() error
- func (s *Stub) EqualSequence(seq []string) bool
- func (s *Stub) ListAppliedVersions() ([]int, error)
- func (s *Stub) Lock() error
- func (s *Stub) Open(url string) (database.Driver, error)
- func (s *Stub) Run(migration io.Reader) error
- func (s *Stub) SetSourceDriver(sourceDrv source.Driver) error
- func (s *Stub) SetVersion(version int, state bool, forced bool, knownDirection *source.Direction) (*source.Direction, error)
- func (s *Stub) Unlock() error
- func (s *Stub) Version() (version int, dirty bool, err error)
Constants ¶
View Source
const DROP = "DROP"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Stub ¶
type Stub struct { Url string Instance interface{} CurrentVersion int MigrationSequence []string LastRunMigration []byte // todo: make []string IsDirty bool Config *Config // contains filtered or unexported fields }
func (*Stub) EqualSequence ¶
func (*Stub) ListAppliedVersions ¶
func (*Stub) SetSourceDriver ¶
This database driver does not currently support file sourcing.
func (*Stub) SetVersion ¶
Click to show internal directories.
Click to hide internal directories.