(conn: &Connection)
| 168 | } |
| 169 | |
| 170 | fn create_indexes(conn: &Connection) -> Result<()> { |
| 171 | conn.execute_batch( |
| 172 | "CREATE INDEX IF NOT EXISTS idx_symbols_name ON symbols(name); |
| 173 | CREATE INDEX IF NOT EXISTS idx_symbols_kind ON symbols(kind); |
| 174 | CREATE INDEX IF NOT EXISTS idx_symbols_file ON symbols(file_path);", |
| 175 | )?; |
| 176 | Ok(()) |
| 177 | } |
| 178 | |
| 179 | fn insert_symbol(stmt: &mut Statement<'_>, row: &SymbolRow) -> Result<()> { |
| 180 | stmt.execute(params![ |
no outgoing calls
no test coverage detected