bonsaidb_client/client/remote_database/
keyvalue.rs1use async_trait::async_trait;
2use bonsaidb_core::keyvalue::AsyncKeyValue;
3use bonsaidb_core::networking::ExecuteKeyOperation;
4
5#[async_trait]
6impl AsyncKeyValue for super::AsyncRemoteDatabase {
7    async fn execute_key_operation(
8        &self,
9        op: bonsaidb_core::keyvalue::KeyOperation,
10    ) -> Result<bonsaidb_core::keyvalue::Output, bonsaidb_core::Error> {
11        Ok(self
12            .client
13            .send_api_request(&ExecuteKeyOperation {
14                database: self.name.to_string(),
15
16                op,
17            })
18            .await?)
19    }
20}