pub fn initialize(conn: &Connection) -> Result<()>Expand description
Initialize the database schema and set connection pragmas.
Pragmas follow the sqlite-rag-integration spec Section 4.1.2:
- WAL journal mode for concurrent readers (Hipp, 2014)
- 64 MB page cache
- 256 MB mmap for reduced syscall overhead
Handles migration from v1 (content FTS5) to v2 (external content FTS5).