logical

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MethodName = "mariadb-dump"

Variables

This section is empty.

Functions

This section is empty.

Types

type Method

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

Method implements method.Method for mariadb-dump (logical/SQL backup).

func New

func New(cfg method.Config) *Method

New creates a Method with the given MariaDB config.

func (*Method) Backup

func (m *Method) Backup(ctx context.Context, tempdir string, logger logging.Logger) error

Backup dumps each database as a separate .sql file into tempdir. Note: each database is dumped in its own mariadb-dump invocation, so the resulting .sql files are not point-in-time consistent across databases.

func (*Method) MethodName

func (m *Method) MethodName() string

MethodName returns the registry identifier for logical backups.

func (*Method) Prepare

func (m *Method) Prepare(_ context.Context, _ string, _ logging.Logger) error

Prepare is a no-op for logical backups.

Jump to

Keyboard shortcuts

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