MCPcopy Create free account
hub / github.com/Migorithm/rustiful-backend / update

Method update

library/src/adapters/outbox.rs:93–111  ·  view source on GitHub ↗
(&self, executor: Arc<RwLock<Executor>>)

Source from the content-addressed store, hash-verified

91 })
92 }
93 pub async fn update(&self, executor: Arc<RwLock<Executor>>) -> ApplicationResult<()> {
94 sqlx::query_as!(
95 Self,
96 r#"
97 UPDATE service_outbox SET
98 processed =$1
99 WHERE id = $2
100 "#,
101 true,
102 self.id,
103 )
104 .execute(executor.write().await.transaction())
105 .await
106 .map_err(|err| {
107 eprintln!("{}", err);
108 ApplicationError::DatabaseConnectionError(Box::new(err))
109 })?;
110 Ok(())
111 }
112}
113
114impl Command for Outbox {}

Callers 7

edit_boardMethod · 0.45
add_commentMethod · 0.45
edit_commentMethod · 0.45
handle_outboxMethod · 0.45
test_delete_boardFunction · 0.45
test_update_boardFunction · 0.45
test_create_commentFunction · 0.45

Calls 1

transactionMethod · 0.80

Tested by 3

test_delete_boardFunction · 0.36
test_update_boardFunction · 0.36
test_create_commentFunction · 0.36