mariadb

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mariadb implements the migration.Provider for MariaDB.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider is the MariaDB migration.Provider. MariaDB DDL statements cause an implicit commit, so unlike PostgreSQL, migrations here cannot be wrapped in a rollback-able transaction; the history table's dirty flag is what makes a crash mid-migration detectable instead.

func Open

func Open(ctx context.Context, dsn string) (*Provider, error)

Open connects to MariaDB and verifies the connection.

func (*Provider) Close

func (p *Provider) Close() error

Close releases the underlying connection pool.

func (*Provider) DB

func (p *Provider) DB() migration.DB

DB returns the migration.DB the engine should use.

func (*Provider) History

func (p *Provider) History() migration.HistoryStore

func (*Provider) Locker

func (p *Provider) Locker(migration.DB) migration.Locker

func (*Provider) Name

func (p *Provider) Name() string

func (*Provider) SupportsTransactionalDDL

func (p *Provider) SupportsTransactionalDDL() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL