//go:build ignore

package main

import (
	"fmt"
	"os"
	"path/filepath"
)

func main() {
	dbPath := filepath.Join(os.Getenv("HOME"), "documents/index/docsys.db")
	if err := InitDB(dbPath); err != nil {
		fmt.Println("InitDB error:", err)
		return
	}
	defer CloseDB()
	
	stats, err := GetStats()
	if err != nil {
		fmt.Println("GetStats error:", err)
		return
	}
	
	fmt.Printf("TotalDocs: %d\n", stats.TotalDocs)
	fmt.Printf("RecentDocs: %d\n", stats.RecentDocs)
	fmt.Printf("RecentUploads count: %d\n", len(stats.RecentUploads))
	for i, doc := range stats.RecentUploads {
		fmt.Printf("  [%d] %s: %s\n", i, doc.ID[:8], doc.Title[:40])
	}
}
