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

            
15
404480
                op,
16
404560
            })
17
404560
            .await?)
18
808960
    }
19
}