ibi Database Recovery Documentation
Welcome to the complete documentation for ibi database recovery tools and schema analysis.
Documentation Overview
đź“– Schema & API Documentation
🛠️ Analysis Documents
Quick Reference
- Schema Version: 166 (ibi internal version)
- SQLite Version: 3.x (PRAGMA schema_version: 300)
- Total Tables: 37 in main database
- Time Period: 2017-2023 data compatibility
Core Statistics
- Files: 8,500+ typical dataset
- AI Tags: 5,312+ content recognition instances
- Albums: 40-60 user-created collections
- Recovery Rate: 99-100% verified
Physical file path = /files/{contentID[0]}/{contentID}
Example: contentID "jT9JduP8vIHpwuY32gLQ" → /files/j/jT9JduP8vIHpwuY32gLQ
Key Tables Schema
Files Table (Primary Content)
- Primary Key:
id
(TEXT)
- Storage Key:
contentID
(maps to physical files)
- Metadata: Complete EXIF, GPS, video, audio metadata
- AI Integration: Links to FilesTags for content analysis
FileGroups Table (Albums)
- Primary Key:
id
(TEXT)
- User Data:
name
(album names like “Jon’s graduation”)
- Statistics:
estCount
, estMinTime
, estMaxTime
FilesTags Table (AI Content Analysis)
- Foreign Key:
fileID
→ Files.id
- Content:
tag
(e.g., “person”, “child”, “beach”)
- Type:
auto
(1 = AI-generated, 0 = manual)
- Adobe Lightroom: Keywords CSV import
- digiKam: Hierarchical metadata CSV
- Apple Photos: Simple CSV format
- XMP Sidecar: Universal XML metadata
- Photo Mechanic: IPTC data CSV
For Developers
Use the reference implementation to get started:
from docs.reference_implementation import IbiDatabaseParser
parser = IbiDatabaseParser('path/to/index.db')
parser.connect()
files = parser.get_all_files()
See the Developer Guide for detailed development information.