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

Function load_all_code_tables

crates/devsql/src/providers/mod.rs:277–291  ·  view source on GitHub ↗

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])

Source from the content-addressed store, hash-verified

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.
277pub 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}

Callers 1

load_code_tablesMethod · 0.85

Calls 1

loadFunction · 0.70

Tested by

no test coverage detected