pub struct ScopedSearchPath<'a> { /* private fields */ }Expand description
Owns a connection to hyperd, the ephemeral primary database, and an
optional persistent attachment path. All SQL execution flows through
this struct.
Two process modes:
- Local — this engine owns the
HyperProcesssubprocess directly. - Daemon — a shared daemon manages
hyperd; the engine only holds a connection.
Database layout:
RAII guard that restores the schema_search_path to the primary
database when dropped. Created by Engine::scoped_search_path.
If the restore fails, logs a warning — the engine mutex serializes
calls so the stale path only persists until the next tool call’s
own scoped_search_path or until with_engine replaces the engine
on a ConnectionLost error.
Trait Implementations§
Source§impl<'a> Debug for ScopedSearchPath<'a>
impl<'a> Debug for ScopedSearchPath<'a>
Source§impl Drop for ScopedSearchPath<'_>
impl Drop for ScopedSearchPath<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ScopedSearchPath<'a>
impl<'a> !UnwindSafe for ScopedSearchPath<'a>
impl<'a> Freeze for ScopedSearchPath<'a>
impl<'a> Send for ScopedSearchPath<'a>
impl<'a> Sync for ScopedSearchPath<'a>
impl<'a> Unpin for ScopedSearchPath<'a>
impl<'a> UnsafeUnpin for ScopedSearchPath<'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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request