pub struct PostgrestTransaction { /* private fields */ }Expand description
トランザクションクライアント
Implementations§
Source§impl PostgrestTransaction
impl PostgrestTransaction
Sourcepub fn from(&self, table: &str) -> PostgrestClient
pub fn from(&self, table: &str) -> PostgrestClient
トランザクション内で指定したテーブルに対するクライアントを取得
Sourcepub async fn commit(&self) -> Result<(), PostgrestError>
pub async fn commit(&self) -> Result<(), PostgrestError>
トランザクションをコミット
Sourcepub async fn rollback(&self) -> Result<(), PostgrestError>
pub async fn rollback(&self) -> Result<(), PostgrestError>
トランザクションをロールバック
Sourcepub async fn rollback_to_savepoint(
&self,
name: &str,
) -> Result<(), PostgrestError>
pub async fn rollback_to_savepoint( &self, name: &str, ) -> Result<(), PostgrestError>
セーブポイントにロールバック
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PostgrestTransaction
impl !RefUnwindSafe for PostgrestTransaction
impl Send for PostgrestTransaction
impl Sync for PostgrestTransaction
impl Unpin for PostgrestTransaction
impl !UnwindSafe for PostgrestTransaction
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