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
606720
    async fn execute_key_operation(
8
606720
        &self,
9
606720
        op: bonsaidb_core::keyvalue::KeyOperation,
10
606720
    ) -> Result<bonsaidb_core::keyvalue::Output, bonsaidb_core::Error> {
11
606720
        Ok(self
12
606720
            .client
13
606720
            .send_api_request(&ExecuteKeyOperation {
14
606720
                database: self.name.to_string(),
15
606720

            
16
606720
                op,
17
606720
            })
18
606840
            .await?)
19
1820160
    }
20
}