[][src]Struct rbatis_core::db::DBCursor

pub struct DBCursor<'c, 'q> {
    pub driver_type: DriverType,
    pub mysql: Option<MySqlCursor<'c, 'q>>,
    pub postgres: Option<PgCursor<'c, 'q>>,
    pub sqlite: Option<SqliteCursor<'c, 'q>>,
}

Fields

driver_type: DriverTypemysql: Option<MySqlCursor<'c, 'q>>postgres: Option<PgCursor<'c, 'q>>sqlite: Option<SqliteCursor<'c, 'q>>

Implementations

impl<'c, 'q> DBCursor<'c, 'q>[src]

pub async fn decode_json<T, '_>(&'_ mut self) -> Result<T, Error> where
    T: DeserializeOwned
[src]

fetch json and decode json into Type

pub async fn fetch_json<'_>(&'_ mut self) -> Result<Vec<Value>, Error>[src]

only fetch json

Auto Trait Implementations

impl<'c, 'q> !RefUnwindSafe for DBCursor<'c, 'q>

impl<'c, 'q> Send for DBCursor<'c, 'q>

impl<'c, 'q> !Sync for DBCursor<'c, 'q>

impl<'c, 'q> Unpin for DBCursor<'c, 'q>

impl<'c, 'q> !UnwindSafe for DBCursor<'c, 'q>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,