Documentation
¶
Overview ¶
Package database provides SQLite database operations for the Olsen photo indexer.
It implements a portable catalog design where all metadata, thumbnails, and color palettes are stored in a single SQLite file with WAL mode enabled for concurrent read access. The database schema supports photos, bursts, duplicates, tags, and collections.
Index ¶
Constants ¶
const FacetMetadataInserts = `` /* 392-byte string literal not displayed */
const Schema = `` /* 6539-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB wraps the SQLite database connection
func (*DB) DeletePhoto ¶
DeletePhoto deletes a photo and all related data (thumbnails, colors, etc.) by file path
func (*DB) GetPhotoCount ¶
GetPhotoCount returns the total number of photos in the database
func (*DB) GetPhotoHash ¶
GetPhotoHash returns the file hash for a photo by file path
func (*DB) InsertPhoto ¶
func (db *DB) InsertPhoto(photo *models.PhotoMetadata) error
InsertPhoto inserts a photo and its related data into the database