(&self, name: &str, path: &str)
| 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( |
no outgoing calls