pub struct RpcBuilder { /* private fields */ }Expand description
Builder for RPC (function call) queries.
Implementations§
Source§impl RpcBuilder
impl RpcBuilder
pub fn new( backend: QueryBackend, schema: String, function: String, args: Value, ) -> Result<RpcBuilder, SupabaseError>
Sourcepub fn rollback(self) -> RpcBuilder
pub fn rollback(self) -> RpcBuilder
Run the RPC call inside a transaction that is rolled back. Useful for testing or dry-run scenarios.
Source§impl RpcBuilder
impl RpcBuilder
Sourcepub async fn execute(self) -> SupabaseResponse<Row>
pub async fn execute(self) -> SupabaseResponse<Row>
Execute the RPC call and return dynamic rows.
Auto Trait Implementations§
impl Freeze for RpcBuilder
impl !RefUnwindSafe for RpcBuilder
impl Send for RpcBuilder
impl Sync for RpcBuilder
impl Unpin for RpcBuilder
impl !UnwindSafe for RpcBuilder
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