package
0.2.1
Repository: https://github.com/stephen/litefs-backup.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AttachMetadata fetches metadata for every path in parallel.
CalcChangesPlan returns a list of storage paths needed to query a list of changed DB pages from the given txID up until the latest available DB TX.
CalcSnapshotPlan returns a list of storage paths to create a snapshot at the given TXID.
CompareStoragePath returns an integer comparing two paths.
FindStoragePaths returns a list of storage paths that match filter.
ForEachStorageCluster executes fn once for each cluster in storage.
ForEachStorageDatabase executes fn once for each database in storage.
FormatStorageLevelDir formats path to the storage level.
FormatStoragePath formats path into a string path.
MaxStoragePath returns the last storage path for a level.
NewChangeSetFromPaths computes a set of changed pages using the provided LTX files.
NewCompactorFromPaths returns a compactor from a set of storage paths.
NewStorageMetadataFromLTX returns storage metadata from an LTX file's header & trailer.
NewStoragePath returns a new instance of StoragePath.
NewStoragePathSliceIterator returns a new instance of StoragePathSliceIterator.
No description provided by the author
StorageTXIDRange returns the minimum & maximum TXID for a compaction level.

# Constants

CompactionLevelRestoreTarget is the default compaction level used to find an LTX file suitable for restore to specific timestamp.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrStopIter indicates that the ongoing iteration should be aborted.

# Structs

CompactionLevel represents a compaction level.
CompactionRequest represents a request for a database to be compacted at a given level in the future.
DB represents a database row.
DBInfo holds basic info about a single database.
Page returns a page that is valid between a transaction range.
StorageMetadata represents metadata associated with a StoragePath.
StoragePath represents an path identifier for a file in long-term storage.
StoragePathSliceIterator iterates over a slice of storage files.
No description provided by the author
Txn represents a row in the "txns" table in the data file.
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
StorageClient represents a client for long-term storage.
StoragePathIterator iterates over a sorted list of storage paths.

# Type aliases

ChangeSet represents a set of changed database pages.
CompactionLevels represents a sorted slice of non-snapshot compaction levels.
StoragePathSlice represents a slice of storage paths.