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

            
16
364032
                op,
17
364032
            })
18
364068
            .await?)
19
728064
    }
20
}