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

Function create_indexes

crates/devsql/src/providers/symbols.rs:170–177  ·  view source on GitHub ↗
(conn: &Connection)

Source from the content-addressed store, hash-verified

168}
169
170fn 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
179fn insert_symbol(stmt: &mut Statement<'_>, row: &SymbolRow) -> Result<()> {
180 stmt.execute(params![

Callers 2

load_with_tree_sitterFunction · 0.70
load_with_regexFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected