uf-valence-core 0.1.2

Valence ports: DatabaseBackend, router, builder, host injectable traits
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Parameterized statement for [`crate::backend::DatabaseBackend::execute_compiled_query`].

#[derive(Debug, Clone)]
pub struct CompiledQuery {
    pub query_string: String,
    pub params: Vec<(String, serde_json::Value)>,
}

impl CompiledQuery {
    #[must_use]
    pub fn new(query_string: String, params: Vec<(String, serde_json::Value)>) -> Self {
        Self {
            query_string,
            params,
        }
    }
}