(conn: &Connection, repo_path: &Path)
| 71 | } |
| 72 | |
| 73 | pub fn load(conn: &Connection, repo_path: &Path) -> Result<()> { |
| 74 | #[cfg(feature = "tree-sitter-ast")] |
| 75 | { |
| 76 | return load_with_tree_sitter(conn, repo_path); |
| 77 | } |
| 78 | #[cfg(not(feature = "tree-sitter-ast"))] |
| 79 | { |
| 80 | load_with_regex(conn, repo_path) |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | #[cfg(feature = "tree-sitter-ast")] |
| 85 | fn load_with_tree_sitter(conn: &Connection, repo_path: &Path) -> Result<()> { |
no test coverage detected