pub struct ExecutionContextBuilder { /* private fields */ }Expand description
Builder for ExecutionContext
Implementations§
Source§impl ExecutionContextBuilder
impl ExecutionContextBuilder
Sourcepub fn named_param(self, name: impl Into<String>, value: Value) -> Self
pub fn named_param(self, name: impl Into<String>, value: Value) -> Self
Add a named parameter
Sourcepub fn auto_commit(self, auto_commit: bool) -> Self
pub fn auto_commit(self, auto_commit: bool) -> Self
Set auto-commit mode
Sourcepub fn session_var(self, name: impl Into<String>, value: Value) -> Self
pub fn session_var(self, name: impl Into<String>, value: Value) -> Self
Set a session variable
Sourcepub fn timeout_ms(self, timeout_ms: u64) -> Self
pub fn timeout_ms(self, timeout_ms: u64) -> Self
Set the query timeout
Sourcepub fn build(self) -> ExecutionContext
pub fn build(self) -> ExecutionContext
Build the execution context
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecutionContextBuilder
impl RefUnwindSafe for ExecutionContextBuilder
impl Send for ExecutionContextBuilder
impl Sync for ExecutionContextBuilder
impl Unpin for ExecutionContextBuilder
impl UnsafeUnpin for ExecutionContextBuilder
impl UnwindSafe for ExecutionContextBuilder
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
Source§impl<T> CompactArcDrop for T
impl<T> CompactArcDrop for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more