Struct evento_query::Query
source · pub struct Query<'q, O>where
O: for<'r> FromRow<'r, <Postgres as Database>::Row> + 'q + Send + Unpin + Cursor,{ /* private fields */ }Implementations§
source§impl<'q, O> Query<'q, O>where
O: for<'r> FromRow<'r, <Postgres as Database>::Row> + 'q + Send + Unpin + Cursor,
impl<'q, O> Query<'q, O>where O: for<'r> FromRow<'r, <Postgres as Database>::Row> + 'q + Send + Unpin + Cursor,
pub fn new(sql: impl Into<String>) -> Self
pub fn bind<T: 'q + Send + Encode<'q, Postgres> + Type<Postgres>>( self, value: T ) -> Self
pub fn backward(self, last: u16, before: Option<impl Into<String>>) -> Self
pub fn forward(self, first: u16, after: Option<impl Into<String>>) -> Self
pub fn build(self, args: QueryArgs) -> Self
pub async fn fetch_all<E>( self, executor: E ) -> Result<QueryResult<O>, CursorError>where E: 'q + Executor<'q, Database = Postgres>,
Auto Trait Implementations§
impl<'q, O> !RefUnwindSafe for Query<'q, O>
impl<'q, O> Send for Query<'q, O>where O: Sync,
impl<'q, O> Sync for Query<'q, O>where O: Sync,
impl<'q, O> Unpin for Query<'q, O>
impl<'q, O> !UnwindSafe for Query<'q, O>
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