tank_core/query/
prepared.rs1use crate::{AsValue, Result};
2use std::{
3 any::Any,
4 fmt::{Debug, Display},
5};
6
7pub trait Prepared: Any + Send + Sync + Display + Debug {
15 fn as_any(self: Box<Self>) -> Box<dyn Any>;
16 fn clear_bindings(&mut self) -> Result<&mut Self>
18 where
19 Self: Sized;
20 fn bind(&mut self, value: impl AsValue) -> Result<&mut Self>
22 where
23 Self: Sized;
24 fn bind_index(&mut self, value: impl AsValue, index: u64) -> Result<&mut Self>
26 where
27 Self: Sized;
28 fn is_empty(&self) -> bool {
30 false
31 }
32}