pub struct PostgresTargetConfig {Show 13 fields
pub dsn_env: String,
pub database_name: String,
pub table: String,
pub overwrite: bool,
pub hnsw: bool,
pub vector_metric: String,
pub mode: String,
pub source_tag: Option<String>,
pub promote_metadata: Vec<PromoteColumn>,
pub force_overwrite: bool,
pub delete_orphans: bool,
pub memory: Option<MemoryConfig>,
pub documents: Option<DocumentStoreConfig>,
}Fields§
§dsn_env: String§database_name: String§table: String§overwrite: boolLegacy bool field from 0.3.x — accepted but never preferred. New configs
should use mode. Top-level target.overwrite: true is still rejected
at config-load by the legacy-form check (Task 13).
hnsw: bool§vector_metric: StringPostgres/pgvector semantic-search metric: cosine, inner_product, or l2.
mode: Stringoverwrite (default), append, or create_if_missing. All three are
implemented in Rust as of MB-3 (sink full-mode parity).
source_tag: Option<String>§promote_metadata: Vec<PromoteColumn>§force_overwrite: bool§delete_orphans: boolWhen true, after upserting chunks for a document, delete any rows for
that document with seq_num >= len(new_chunks). Closes the per-doc
shrink gap (last run wrote 12 chunks; this run writes 8 → drop the 4
orphans inside the same write transaction). Default false to preserve
the historical behavior. See docs/incremental.md.
memory: Option<MemoryConfig>RM-A: when present, load_sink returns a MemorySink (extends PgSink
with tier/kind stamping + supersede + soft-invalidate). Mirror of
Python chunkshop.config.TargetConfig.memory.
documents: Option<DocumentStoreConfig>Python/Postgres-only document table config. Rust rejects enabled document stores explicitly so cross-language YAMLs cannot silently ingest chunks without the companion document rows.
Trait Implementations§
Source§impl Clone for PostgresTargetConfig
impl Clone for PostgresTargetConfig
Source§fn clone(&self) -> PostgresTargetConfig
fn clone(&self) -> PostgresTargetConfig
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 PostgresTargetConfig
impl Debug for PostgresTargetConfig
Source§impl<'de> Deserialize<'de> for PostgresTargetConfig
impl<'de> Deserialize<'de> for PostgresTargetConfig
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 PostgresTargetConfig
impl RefUnwindSafe for PostgresTargetConfig
impl Send for PostgresTargetConfig
impl Sync for PostgresTargetConfig
impl Unpin for PostgresTargetConfig
impl UnsafeUnpin for PostgresTargetConfig
impl UnwindSafe for PostgresTargetConfig
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