pub struct SessionStagingSourceConfig {
pub dsn: Option<String>,
pub dsn_env: Option<String>,
pub staging_table: String,
pub staging_schema: String,
pub mode: SessionStagingMode,
pub min_age_seconds: u64,
pub max_sessions: Option<usize>,
}Expand description
SP-A staging-table source. Reads the chunkshop-owned append-only
staging table (schema.table, default public.chunkshop_staging)
and yields one Document per session. mode='realtime' advances
the per-session realtime watermark; mode='consolidate' uses a
session-level eligibility WHERE so a late event after consolidation
triggers a full-staging rebuild (SP-A spec O1 — non-negotiable;
see Task 5 of the RM-A plan and Python fix 49861dc).
Fields§
§dsn: Option<String>Direct DSN (literal or ${VAR} interpolated at connect time).
At least one of dsn / dsn_env must be set.
dsn_env: Option<String>§staging_table: String§staging_schema: String§mode: SessionStagingMode§min_age_seconds: u64Consolidate-mode: only sessions with max(event_ts|staged_at) < now() - min_age_seconds are selected. Lets quiet sessions consolidate while
active sessions stay provisional. Ignored in realtime mode.
max_sessions: Option<usize>Cap on yielded sessions per run (None = no cap). Mirrors Python.
Trait Implementations§
Source§impl Clone for SessionStagingSourceConfig
impl Clone for SessionStagingSourceConfig
Source§fn clone(&self) -> SessionStagingSourceConfig
fn clone(&self) -> SessionStagingSourceConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SessionStagingSourceConfig
impl Debug for SessionStagingSourceConfig
Source§impl<'de> Deserialize<'de> for SessionStagingSourceConfig
impl<'de> Deserialize<'de> for SessionStagingSourceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for SessionStagingSourceConfig
impl RefUnwindSafe for SessionStagingSourceConfig
impl Send for SessionStagingSourceConfig
impl Sync for SessionStagingSourceConfig
impl Unpin for SessionStagingSourceConfig
impl UnsafeUnpin for SessionStagingSourceConfig
impl UnwindSafe for SessionStagingSourceConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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