Skip to main content

valence_core/
compiled_query.rs

1//! Parameterized statement for [`crate::backend::DatabaseBackend::execute_compiled_query`].
2
3#[derive(Debug, Clone)]
4pub struct CompiledQuery {
5    pub query_string: String,
6    pub params: Vec<(String, serde_json::Value)>,
7}
8
9impl CompiledQuery {
10    pub fn new(query_string: String, params: Vec<(String, serde_json::Value)>) -> Self {
11        Self {
12            query_string,
13            params,
14        }
15    }
16}