pub struct PreparedAstQuery { /* private fields */ }Expand description
A fully prepared AST query handle.
This stores:
- precomputed prepared statement identity (
stmt) - pre-encoded bind parameters (
params) - source SQL text (
sql) for retry re-prepare paths
Use with PgDriver::fetch_all_prepared_ast() for the lowest-overhead
repeated execution of an identical AST command.
Implementations§
Source§impl PreparedAstQuery
impl PreparedAstQuery
Sourcepub fn statement_name(&self) -> &str
pub fn statement_name(&self) -> &str
Prepared statement name (server-side identity).
Sourcepub fn param_count(&self) -> usize
pub fn param_count(&self) -> usize
Number of bind parameters encoded in this query.
Trait Implementations§
Source§impl Clone for PreparedAstQuery
impl Clone for PreparedAstQuery
Source§fn clone(&self) -> PreparedAstQuery
fn clone(&self) -> PreparedAstQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PreparedAstQuery
impl RefUnwindSafe for PreparedAstQuery
impl Send for PreparedAstQuery
impl Sync for PreparedAstQuery
impl Unpin for PreparedAstQuery
impl UnsafeUnpin for PreparedAstQuery
impl UnwindSafe for PreparedAstQuery
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