1
use async_trait::async_trait;
2
use bonsaidb_core::{keyvalue::AsyncKeyValue, networking::ExecuteKeyOperation};
3

            
4
#[async_trait]
5
impl AsyncKeyValue for super::RemoteDatabase {
6
384256
    async fn execute_key_operation(
7
384256
        &self,
8
384256
        op: bonsaidb_core::keyvalue::KeyOperation,
9
384256
    ) -> Result<bonsaidb_core::keyvalue::Output, bonsaidb_core::Error> {
10
384256
        Ok(self
11
384256
            .client
12
384256
            .send_api_request_async(&ExecuteKeyOperation {
13
384256
                database: self.name.to_string(),
14
384256

            
15
384256
                op,
16
384313
            })
17
384313
            .await?)
18
768512
    }
19
}