fix

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package fix contains functions for repairing the database data.

Index

Constants

View Source
const (
	UpdateSet = "UPDATE files SET "
)

Variables

View Source
var (
	ErrCtxLog = errors.New("context logger is invalid")
	ErrDB     = errors.New("database connection is nil")
	ErrLog    = errors.New("the server cannot save any logs")
	ErrRepair = errors.New("invalid repair option")
)

Functions

This section is empty.

Types

type Repair

type Repair int

Repair a column or type of data within the database.

const (
	// None does nothing.
	None Repair = iota - 1
	// Artifacts repairs all the artifact data.
	Artifacts
	// Releaser focuses on the releaser data using the group_brand_by and group_brand_for columns.
	Releaser
)

func (Repair) Run

func (r Repair) Run(ctx context.Context, db *sql.DB, tx *sql.Tx) error

Run the database repair based on the repair option.

func (Repair) String added in v0.8.0

func (r Repair) String() string

Jump to

Keyboard shortcuts

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