package ql
import "github.com/golang-migrate/migrate/v4/database/ql"
Index ¶
- Variables
- func WithInstance(instance *sql.DB, config *Config) (database.Driver, error)
- type Config
- type Ql
- func (m *Ql) Close() error
- func (m *Ql) Drop() (err error)
- func (m *Ql) Lock() error
- func (m *Ql) Open(url string) (database.Driver, error)
- func (m *Ql) Run(migration io.Reader) error
- func (m *Ql) SetVersion(version int, dirty bool) error
- func (m *Ql) Unlock() error
- func (m *Ql) Version() (version int, dirty bool, err error)
Variables ¶
var ( ErrDatabaseDirty = fmt.Errorf("database is dirty") ErrNilConfig = fmt.Errorf("no config") ErrNoDatabaseName = fmt.Errorf("no database name") ErrAppendPEM = fmt.Errorf("failed to append PEM") )
var DefaultMigrationsTable = "schema_migrations"
Functions ¶
func WithInstance ¶
Types ¶
type Config ¶
type Ql ¶
type Ql struct {
// contains filtered or unexported fields
}
func (*Ql) Close ¶
func (*Ql) Drop ¶
func (*Ql) Lock ¶
func (*Ql) Open ¶
func (*Ql) Run ¶
func (*Ql) SetVersion ¶
func (*Ql) Unlock ¶
func (*Ql) Version ¶
Source Files ¶
- Version
- v4.18.2 (latest)
- Published
- Jan 27, 2025
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 1 week ago –
Tools for package owners.