pub struct PgMutationExecutor { /* private fields */ }Implementations§
Source§impl PgMutationExecutor
impl PgMutationExecutor
pub fn new(pool: Pool) -> Self
pub fn pool(&self) -> Pool
pub async fn ensure_schema( &self, dialect: &PostgresDialect, entities: &[&EntityDescriptor], ) -> Result<(), MutationExecutorError>
pub async fn ensure_id_space_table( &self, table_name: &str, ) -> Result<(), MutationExecutorError>
pub async fn execute( &self, query: &CompiledQuery, ) -> Result<u64, MutationExecutorError>
pub async fn fetch_all( &self, query: &CompiledQuery, ) -> Result<Vec<Record>, MutationExecutorError>
Trait Implementations§
Source§impl Clone for PgMutationExecutor
impl Clone for PgMutationExecutor
Source§fn clone(&self) -> PgMutationExecutor
fn clone(&self) -> PgMutationExecutor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl SqlTransaction for PgMutationExecutor
impl SqlTransaction for PgMutationExecutor
Source§impl SqlTransport for PgMutationExecutor
impl SqlTransport for PgMutationExecutor
type Error = MutationExecutorError
async fn fetch_all_sql( &self, query: &CompiledQuery, ) -> Result<Vec<Record>, Self::Error>
async fn execute_sql(&self, query: &CompiledQuery) -> Result<u64, Self::Error>
Auto Trait Implementations§
impl !RefUnwindSafe for PgMutationExecutor
impl !UnwindSafe for PgMutationExecutor
impl Freeze for PgMutationExecutor
impl Send for PgMutationExecutor
impl Sync for PgMutationExecutor
impl Unpin for PgMutationExecutor
impl UnsafeUnpin for PgMutationExecutor
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