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

Function insert_row

crates/devsql/src/providers/imports.rs:118–130  ·  view source on GitHub ↗
(stmt: &mut Statement<'_>, row: &ImportRow)

Source from the content-addressed store, hash-verified

116}
117
118fn insert_row(stmt: &mut Statement<'_>, row: &ImportRow) -> Result<()> {
119 stmt.execute(params![
120 row.file_path,
121 row.line_number,
122 row.module,
123 row.name.as_deref(),
124 row.alias.as_deref(),
125 row.kind,
126 if row.is_default { 1 } else { 0 },
127 if row.is_wildcard { 1 } else { 0 },
128 ])?;
129 Ok(())
130}
131
132fn extract_imports_from_tree(
133 language: TsLanguageKind,

Callers 1

loadFunction · 0.85

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected