Bindable

Trait Bindable 

Source
pub trait Bindable<Q>
where Q: Queryable, Self: Sized,
{ // 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§

Source

fn init(taos: &Q) -> RawResult<Self>

Source

fn init_with_req_id(taos: &Q, req_id: u64) -> RawResult<Self>

Source

fn prepare<S: AsRef<str>>(&mut self, sql: S) -> RawResult<&mut Self>

Source

fn set_tbname<S: AsRef<str>>(&mut self, name: S) -> RawResult<&mut Self>

Source

fn set_tags(&mut self, tags: &[Value]) -> RawResult<&mut Self>

Source

fn bind(&mut self, params: &[ColumnView]) -> RawResult<&mut Self>

Source

fn add_batch(&mut self) -> RawResult<&mut Self>

Source

fn execute(&mut self) -> RawResult<usize>

Source

fn affected_rows(&self) -> usize

Provided Methods§

Source

fn set_tbname_tags<S: AsRef<str>>( &mut self, name: S, tags: &[Value], ) -> RawResult<&mut Self>

Source

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.

Implementors§