(conn: &mut Connection, id: i64)
| 5353 | } |
| 5354 | |
| 5355 | pub fn delete_user_memory(conn: &mut Connection, id: i64) -> Result<(), rusqlite::Error> { |
| 5356 | let tx = conn.transaction_with_behavior(TransactionBehavior::Immediate)?; |
| 5357 | let affected = tx.execute("DELETE FROM user_memories WHERE id = ?1", params![id])?; |
| 5358 | if affected > 0 { |
| 5359 | bump_project_user_profile_version(&tx)?; |
| 5360 | } |
| 5361 | tx.commit()?; |
| 5362 | Ok(()) |
| 5363 | } |
| 5364 | |
| 5365 | pub fn update_user_memory_content( |
| 5366 | conn: &mut Connection, |
no test coverage detected