pub struct PooledConn<'a> { /* private fields */ }Expand description
A connection handle from the pool.
§Important
- Does NOT hold the pool lock during I/O operations
- Only the connection’s own mutex is held during queries
- Multiple PooledConn instances can share the same underlying connection (VoltDB supports concurrent requests via handle-based tracking)
Implementations§
Source§impl PooledConn<'_>
impl PooledConn<'_>
Sourcepub fn list_procedures(&mut self) -> Result<VoltTable, VoltError>
pub fn list_procedures(&mut self) -> Result<VoltTable, VoltError>
List all stored procedures.
Sourcepub fn call_sp(
&mut self,
proc: &str,
params: Vec<&dyn Value>,
) -> Result<VoltTable, VoltError>
pub fn call_sp( &mut self, proc: &str, params: Vec<&dyn Value>, ) -> Result<VoltTable, VoltError>
Call a stored procedure with parameters.
Sourcepub fn slot_index(&self) -> usize
pub fn slot_index(&self) -> usize
Get the slot index of this connection (for debugging).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PooledConn<'a>
impl<'a> RefUnwindSafe for PooledConn<'a>
impl<'a> Send for PooledConn<'a>
impl<'a> Sync for PooledConn<'a>
impl<'a> Unpin for PooledConn<'a>
impl<'a> UnwindSafe for PooledConn<'a>
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