pub struct WorkspaceStore { /* private fields */ }Expand description
Persistent SavedQueryStore backed by the _hyperdb_saved_queries
meta-table inside the .hyper workspace. Rows round-trip through SQL
parameter binding so saved queries containing quotes or backslashes are
handled safely.
Lazy init: the meta-table is created on the first save/list/get/
delete call, guarded by a Mutex<bool> so concurrent first-touches
don’t race against each other.
Implementations§
Trait Implementations§
Source§impl Debug for WorkspaceStore
impl Debug for WorkspaceStore
Source§impl Default for WorkspaceStore
impl Default for WorkspaceStore
Source§fn default() -> WorkspaceStore
fn default() -> WorkspaceStore
Returns the “default value” for a type. Read more
Source§impl SavedQueryStore for WorkspaceStore
impl SavedQueryStore for WorkspaceStore
Source§fn save(
&self,
engine: Option<&Engine>,
query: SavedQuery,
) -> Result<(), McpError>
fn save( &self, engine: Option<&Engine>, query: SavedQuery, ) -> Result<(), McpError>
Persist a new query. Returns an
AlreadyExists-class error
(currently SchemaMismatch, with a clear message) if name is
already in use — callers should delete first if overwriting is
intended. Read moreSource§fn get(
&self,
engine: Option<&Engine>,
name: &str,
) -> Result<Option<SavedQuery>, McpError>
fn get( &self, engine: Option<&Engine>, name: &str, ) -> Result<Option<SavedQuery>, McpError>
Retrieve a single saved query by name, or
Ok(None) if not found. Read moreAuto Trait Implementations§
impl !Freeze for WorkspaceStore
impl RefUnwindSafe for WorkspaceStore
impl Send for WorkspaceStore
impl Sync for WorkspaceStore
impl Unpin for WorkspaceStore
impl UnsafeUnpin for WorkspaceStore
impl UnwindSafe for WorkspaceStore
Blanket Implementations§
impl<T> Allocation for T
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