xitca_postgres

Trait ExecuteBlocking

source
pub trait ExecuteBlocking<'c, C>
where Self: Sized,
{ type ExecuteOutput; type QueryOutput; // Required methods fn execute_blocking(self, cli: &'c C) -> Self::ExecuteOutput; fn query_blocking(self, cli: &'c C) -> Self::QueryOutput; }
Expand description

blocking version of Execute for synchronous environment

Required Associated Types§

Required Methods§

source

fn execute_blocking(self, cli: &'c C) -> Self::ExecuteOutput

source

fn query_blocking(self, cli: &'c C) -> Self::QueryOutput

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'c, C> ExecuteBlocking<'c, C> for &Path
where C: Query + 'c,

source§

type ExecuteOutput = Result<u64, Error>

source§

type QueryOutput = Result<GenericRowStream<Vec<Column>, NoTyped>, Error>

source§

fn execute_blocking(self, cli: &'c C) -> Self::ExecuteOutput

source§

fn query_blocking(self, cli: &'c C) -> Self::QueryOutput

source§

impl<C> ExecuteBlocking<'_, C> for &str
where C: Query,

source§

type ExecuteOutput = Result<u64, Error>

source§

type QueryOutput = Result<GenericRowStream<Vec<Column>, NoTyped>, Error>

source§

fn execute_blocking(self, cli: &C) -> Self::ExecuteOutput

source§

fn query_blocking(self, cli: &C) -> Self::QueryOutput

Implementors§

source§

impl<'c, 's, C> ExecuteBlocking<'c, C> for StatementNamed<'s>
where C: Prepare + 'c, 's: 'c,

source§

impl<'p, C, B, const SYNC_MODE: bool> ExecuteBlocking<'_, C> for Pipeline<'p, B, SYNC_MODE>
where C: Query, B: DerefMut<Target = BytesMut>,

source§

impl<'s, 'c, C, P> ExecuteBlocking<'c, C> for StatementUnnamedBind<'s, P>
where C: Prepare + 'c, P: AsParams + 'c, 's: 'c,

source§

type ExecuteOutput = Result<u64, Error>

source§

type QueryOutput = Result<RowStreamGuarded<'c, C>, Error>

source§

impl<'s, C> ExecuteBlocking<'_, C> for &'s Statement
where C: Query,

source§

type ExecuteOutput = Result<u64, Error>

source§

type QueryOutput = Result<GenericRowStream<&'s [Column], Typed>, Error>

source§

impl<'s, C, P> ExecuteBlocking<'_, C> for StatementQuery<'s, P>
where C: Query, P: AsParams + 's,

source§

type ExecuteOutput = Result<u64, Error>

source§

type QueryOutput = Result<GenericRowStream<&'s [Column], Typed>, Error>