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    #[must_use]
11    pub fn new(query_string: String, params: Vec<(String, serde_json::Value)>) -> Self {
12        Self {
13            query_string,
14            params,
15        }
16    }
17}