core

package
v0.0.0-...-793b6eb Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotInitialized indicates that the venn database has not been initialized
	ErrNotInitialized = errors.New("venn has not been initialized")
	// ErrNoIndexes indicates that no indexes have been created
	ErrNoIndexes = errors.New("no indexes have been created")
	// ErrIndexNotWellFormed indicates the index structure is corrupted
	ErrIndexNotWellFormed = errors.New("index is not well-formed")
)

Functions

func CreateDB

func CreateDB(logger hclog.Logger) error

CreateDB creates a new venn database file.

func IndexAddFiles

func IndexAddFiles(logger hclog.Logger, indexName, rootPath string) error

IndexAddFiles indexes all files in the given root path.

func IndexAddGooglePhotosTakeout

func IndexAddGooglePhotosTakeout(logger hclog.Logger, indexName, rootPath string) error

IndexAddGooglePhotosTakeout indexes files from a Google Photos takeout, preserving timestamps from metadata.

func IndexCat

func IndexCat(logger hclog.Logger, indexName string) error

IndexCat displays the contents of an index in a table format.

func IndexChunk

func IndexChunk(logger hclog.Logger, indexName, targetIndexPrefix string, chunkSize int) error

IndexChunk splits an index into multiple smaller indexes.

func IndexDelete

func IndexDelete(logger hclog.Logger, indexName string) error

IndexDelete deletes an index from the database.

func IndexList

func IndexList(logger hclog.Logger) error

IndexList lists all indexes in the database.

func IndexStats

func IndexStats(logger hclog.Logger, indexName string) error

IndexStats displays statistics about an index.

func Materialize

func Materialize(logger hclog.Logger, indexName, rootPath string) error

Materialize creates a materialized view of an index in the given directory.

func SetDifference

func SetDifference(logger hclog.Logger, targetIndex, indexA, indexB string) error

SetDifference creates a new index containing entries in A but not in B (A - B).

func SetIntersection

func SetIntersection(logger hclog.Logger, targetIndex, indexA, indexB string) error

SetIntersection creates a new index containing entries in both A and B (A ∩ B).

func SetUnion

func SetUnion(logger hclog.Logger, targetIndex, indexA, indexB string) error

SetUnion creates a new index containing all entries from A and B (A ∪ B).

Types

This section is empty.

Jump to

Keyboard shortcuts

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