MCPcopy Create free account
hub / github.com/douglance/devsql / load

Function load

crates/devsql/src/providers/symbols.rs:73–82  ·  view source on GitHub ↗
(conn: &Connection, repo_path: &Path)

Source from the content-addressed store, hash-verified

71}
72
73pub 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")]
85fn load_with_tree_sitter(conn: &Connection, repo_path: &Path) -> Result<()> {

Callers 1

load_all_code_tablesFunction · 0.70

Calls 2

load_with_tree_sitterFunction · 0.85
load_with_regexFunction · 0.85

Tested by

no test coverage detected