Load one or more code tables using the existing per-table providers. This is a compatibility shim while the single-pass loader is under construction.
(conn: &Connection, repo_path: &Path, tables: &[&str])
| 275 | /// Load one or more code tables using the existing per-table providers. |
| 276 | /// This is a compatibility shim while the single-pass loader is under construction. |
| 277 | pub fn load_all_code_tables(conn: &Connection, repo_path: &Path, tables: &[&str]) -> Result<()> { |
| 278 | for table in tables { |
| 279 | match *table { |
| 280 | "source_files" => source_files::load(conn, repo_path)?, |
| 281 | "source_lines" => source_lines::load(conn, repo_path)?, |
| 282 | "symbols" => symbols::load(conn, repo_path)?, |
| 283 | #[cfg(feature = "tree-sitter-ast")] |
| 284 | "imports" => imports::load(conn, repo_path)?, |
| 285 | #[cfg(feature = "tree-sitter-ast")] |
| 286 | "ast_nodes" => ast_nodes::load(conn, repo_path)?, |
| 287 | _ => {} |
| 288 | } |
| 289 | } |
| 290 | Ok(()) |
| 291 | } |
no test coverage detected