MCPcopy Create free account
hub / github.com/concensure/Semantic / insert_module

Method insert_module

storage/src/lib.rs:965–971  ·  view source on GitHub ↗
(&self, name: &str, path: &str)

Source from the content-addressed store, hash-verified

963 }
964
965 pub fn insert_module(&self, name: &str, path: &str) -> Result<i64> {
966 self.conn.execute(
967 "INSERT INTO modules(name, path) VALUES(?1, ?2)",
968 params![name, path],
969 )?;
970 Ok(self.conn.last_insert_rowid())
971 }
972
973 pub fn insert_module_file(&self, module_id: i64, file_path: &str) -> Result<()> {
974 self.conn.execute(

Calls

no outgoing calls