[−][src]Struct siodb_driver::SiodbConn
A connection to Siodb.
For instance:
let uri = "siodb://root@localhost:50000?identity_file=/home/siodb/.ssh/id_rsa"; let mut siodb_conn = SiodbConn::new(&uri).expect(&format!("Error connecting to URI '{}'", uri));
Implementations
impl SiodbConn
[src]
pub fn new(uri_str: &str) -> Result<SiodbConn, DriverError>
[src]
Create a new authenticated connection to Siodb from an URI.
pub fn close(&mut self) -> Result<(), DriverError>
[src]
Close the connection to Siodb.
pub fn execute(&mut self, sql: String) -> Result<(), DriverError>
[src]
Execute a query or a statement in a connection.
pub fn next(&mut self) -> Result<bool, DriverError>
[src]
Read the next row from the result set.
pub fn scan(&self) -> &Vec<Option<Value>>
[src]
Return last row fetched from next().
pub fn get_row_count(&mut self) -> u64
[src]
Return the total number of rows read to far from next().
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SiodbConn
impl Send for SiodbConn
impl Sync for SiodbConn
impl Unpin for SiodbConn
impl UnwindSafe for SiodbConn
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,