pub struct PostgresStore { /* private fields */ }Expand description
PostgreSQL store for Seesaw.
Provides InsightStore implementation for observability and the ES
event store (via the event_store module).
Implementations§
Trait Implementations§
Source§impl Clone for PostgresStore
impl Clone for PostgresStore
Source§impl InsightStore for PostgresStore
impl InsightStore for PostgresStore
Source§fn subscribe_events<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Stream<Item = InsightEvent> + Send + Unpin>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn subscribe_events<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Stream<Item = InsightEvent> + Send + Unpin>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Subscribe to live events for all workflows Read more
Source§fn get_workflow_tree<'life0, 'async_trait>(
&'life0 self,
correlation_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<WorkflowTree>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_workflow_tree<'life0, 'async_trait>(
&'life0 self,
correlation_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<WorkflowTree>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get workflow tree for visualization Read more
Source§fn get_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<InsightStats>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<InsightStats>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get aggregate statistics Read more
Source§fn get_recent_events<'life0, 'async_trait>(
&'life0 self,
cursor: Option<i64>,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<InsightEvent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_recent_events<'life0, 'async_trait>(
&'life0 self,
cursor: Option<i64>,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<InsightEvent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get recent events with cursor-based pagination Read more
Source§fn get_effect_logs<'life0, 'async_trait>(
&'life0 self,
correlation_id: Option<Uuid>,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<EffectExecutionLog>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_effect_logs<'life0, 'async_trait>(
&'life0 self,
correlation_id: Option<Uuid>,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<EffectExecutionLog>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get effect execution logs for operational debugging. Read more
Auto Trait Implementations§
impl Freeze for PostgresStore
impl !RefUnwindSafe for PostgresStore
impl Send for PostgresStore
impl Sync for PostgresStore
impl Unpin for PostgresStore
impl UnsafeUnpin for PostgresStore
impl !UnwindSafe for PostgresStore
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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