1
use async_trait::async_trait;
2
use bonsaidb_core::keyvalue::AsyncKeyValue;
3
use bonsaidb_core::networking::ExecuteKeyOperation;
4

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

            
16
343808
                op,
17
343808
            })
18
343842
            .await?)
19
687616
    }
20
}