package stub
import "github.com/golang-migrate/migrate/v4/database/stub"
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) Lock() error
- func (s *Stub) Open(url string) (database.Driver, error)
- func (s *Stub) Run(migration io.Reader) error
- func (s *Stub) SetVersion(version int, state bool) error
- func (s *Stub) Unlock() error
- func (s *Stub) Version() (version int, dirty bool, err error)
Constants ¶
const DROP = "DROP"
Functions ¶
func WithInstance ¶
Types ¶
type Config ¶
type Config struct{}
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) Close ¶
func (*Stub) Drop ¶
func (*Stub) EqualSequence ¶
func (*Stub) Lock ¶
func (*Stub) Open ¶
func (*Stub) Run ¶
func (*Stub) SetVersion ¶
func (*Stub) Unlock ¶
func (*Stub) Version ¶
Source Files ¶
- Version
- v4.18.2 (latest)
- Published
- Jan 27, 2025
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 1 week ago –
Tools for package owners.