pub struct ClickhousePgRow { /* private fields */ }
Implementations§
Source§impl ClickhousePgRow
impl ClickhousePgRow
pub fn try_get_data(&self) -> Result<Vec<(&str, ClickhousePgValue)>, Error>
pub fn try_get_value<I>(&self, index: I) -> Result<ClickhousePgValue, Error>where
I: ColumnIndex<PgRow>,
Trait Implementations§
Source§impl<'c, 'q, 'async_trait> ExecutorExt<'c, 'q, 'async_trait, ClickhousePgRow> for &'c ClickhousePgPoolwhere
'c: 'async_trait,
'q: 'async_trait,
impl<'c, 'q, 'async_trait> ExecutorExt<'c, 'q, 'async_trait, ClickhousePgRow> for &'c ClickhousePgPoolwhere
'c: 'async_trait,
'q: 'async_trait,
fn execute( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
fn fetch_all( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Error>> + Send + 'async_trait>>
fn fetch_one( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
fn fetch_optional( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<Option<T>, Error>> + Send + 'async_trait>>
Source§impl<'c, 'q, 'async_trait> ExecutorExt<'c, 'q, 'async_trait, ClickhousePgRow> for &'c mut ClickhousePgConnectionwhere
'c: 'async_trait,
'q: 'async_trait,
impl<'c, 'q, 'async_trait> ExecutorExt<'c, 'q, 'async_trait, ClickhousePgRow> for &'c mut ClickhousePgConnectionwhere
'c: 'async_trait,
'q: 'async_trait,
fn execute( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
fn fetch_all( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Error>> + Send + 'async_trait>>
fn fetch_one( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
fn fetch_optional( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<Option<T>, Error>> + Send + 'async_trait>>
Source§impl<'c, 'q, 'async_trait> ExecutorExt<'c, 'q, 'async_trait, ClickhousePgRow> for &'c mut ClickhousePgPoolConnectionwhere
'c: 'async_trait,
'q: 'async_trait,
impl<'c, 'q, 'async_trait> ExecutorExt<'c, 'q, 'async_trait, ClickhousePgRow> for &'c mut ClickhousePgPoolConnectionwhere
'c: 'async_trait,
'q: 'async_trait,
fn execute( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
fn fetch_all( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<Vec<T>, Error>> + Send + 'async_trait>>
fn fetch_one( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
fn fetch_optional( self, sql: &'q str, ) -> Pin<Box<dyn Future<Output = Result<Option<T>, Error>> + Send + 'async_trait>>
Auto Trait Implementations§
impl !Freeze for ClickhousePgRow
impl RefUnwindSafe for ClickhousePgRow
impl Send for ClickhousePgRow
impl Sync for ClickhousePgRow
impl Unpin for ClickhousePgRow
impl UnwindSafe for ClickhousePgRow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more