Struct sonnerie_api::RowAdder [−][src]
pub struct RowAdder<'client> { /* fields omitted */ }
A function returned by Client::add_rows
.
Methods
impl<'client> RowAdder<'client>
[src]
impl<'client> RowAdder<'client>
pub fn row(&mut self, t: &NaiveDateTime, cols: &[&FromValue])
[src]
pub fn row(&mut self, t: &NaiveDateTime, cols: &[&FromValue])
Add a single row
Panics on error. Call row_checked
in order to test for failures.
pub fn row_checked(
&mut self,
t: &NaiveDateTime,
cols: &[&FromValue]
) -> Result<()>
[src]
pub fn row_checked(
&mut self,
t: &NaiveDateTime,
cols: &[&FromValue]
) -> Result<()>
pub fn finish(self) -> Result<()>
[src]
pub fn finish(self) -> Result<()>
Explicitly end the transaction, testing for errors
Calling this function is optional, you can just let the object go out of scope, but this function allows you to check for errors.