backup

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package backup defines backup methods for SQLite databases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Method

type Method int

Method defines the backup method to use.

const (
	// Default uses the SQLite backup API if available, otherwise falls back to Vacuum.
	Default Method = iota

	// API uses SQLite's online backup API (sqlite3_backup_*).
	// Less locking - only locks while reading pages, not for entire operation.
	// Better for large databases with concurrent access.
	API

	// Vacuum uses SQLite's VACUUM INTO command.
	// Creates an optimized, defragmented copy.
	// Holds locks for the entire operation but produces a smaller file.
	Vacuum
)

Jump to

Keyboard shortcuts

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