fix

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: GPL-3.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	// All repairs all the repairable data.
	All
	// 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, logger *zap.SugaredLogger, db *sql.DB) error

Run the database repair based on the repair option.

Jump to

Keyboard shortcuts

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