pub trait Bindable<Q>{
// Required methods
fn init(taos: &Q) -> RawResult<Self>;
fn init_with_req_id(taos: &Q, req_id: u64) -> RawResult<Self>;
fn prepare<S: AsRef<str>>(&mut self, sql: S) -> RawResult<&mut Self>;
fn set_tbname<S: AsRef<str>>(&mut self, name: S) -> RawResult<&mut Self>;
fn set_tags(&mut self, tags: &[Value]) -> RawResult<&mut Self>;
fn bind(&mut self, params: &[ColumnView]) -> RawResult<&mut Self>;
fn add_batch(&mut self) -> RawResult<&mut Self>;
fn execute(&mut self) -> RawResult<usize>;
fn affected_rows(&self) -> usize;
// Provided methods
fn set_tbname_tags<S: AsRef<str>>(
&mut self,
name: S,
tags: &[Value],
) -> RawResult<&mut Self> { ... }
fn result_set(&mut self) -> RawResult<Q::ResultSet> { ... }
}Required Methods§
fn init(taos: &Q) -> RawResult<Self>
fn init_with_req_id(taos: &Q, req_id: u64) -> RawResult<Self>
fn prepare<S: AsRef<str>>(&mut self, sql: S) -> RawResult<&mut Self>
fn set_tbname<S: AsRef<str>>(&mut self, name: S) -> RawResult<&mut Self>
fn bind(&mut self, params: &[ColumnView]) -> RawResult<&mut Self>
fn add_batch(&mut self) -> RawResult<&mut Self>
fn execute(&mut self) -> RawResult<usize>
fn affected_rows(&self) -> usize
Provided Methods§
fn result_set(&mut self) -> RawResult<Q::ResultSet>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.