pub enum AstPipelineMode {
Auto,
OneShot,
Cached,
}Expand description
Strategy for AST pipeline execution.
Auto favors the cached prepared-statement path for large batches and
one-shot execution for tiny batches.
Variants§
Auto
Heuristic strategy:
- small batch =>
OneShot - larger batch =>
Cached
OneShot
Parse+Bind+Execute for each command in the batch.
Cached
Cache prepared SQL templates and execute Bind+Execute in hot path.
Trait Implementations§
Source§impl Clone for AstPipelineMode
impl Clone for AstPipelineMode
Source§fn clone(&self) -> AstPipelineMode
fn clone(&self) -> AstPipelineMode
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 moreSource§impl Debug for AstPipelineMode
impl Debug for AstPipelineMode
Source§impl Default for AstPipelineMode
impl Default for AstPipelineMode
Source§fn default() -> AstPipelineMode
fn default() -> AstPipelineMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for AstPipelineMode
impl PartialEq for AstPipelineMode
impl Copy for AstPipelineMode
impl Eq for AstPipelineMode
impl StructuralPartialEq for AstPipelineMode
Auto Trait Implementations§
impl Freeze for AstPipelineMode
impl RefUnwindSafe for AstPipelineMode
impl Send for AstPipelineMode
impl Sync for AstPipelineMode
impl Unpin for AstPipelineMode
impl UnsafeUnpin for AstPipelineMode
impl UnwindSafe for AstPipelineMode
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