#[non_exhaustive]pub struct PgvectorConfig { /* private fields */ }Expand description
Configuration for MemoryPgvector.
The connection url carries credentials and TLS mode
(postgres://user:pass@host/db?sslmode=require) — TLS is the operator’s
responsibility via the URL, mirroring standard libpq behaviour.
Implementations§
Source§impl PgvectorConfig
impl PgvectorConfig
Sourcepub fn with_table_prefix(self, prefix: impl Into<String>) -> Self
pub fn with_table_prefix(self, prefix: impl Into<String>) -> Self
Override the table-name prefix (default klieo_facts). Must be a valid
lowercase SQL identifier; rejected at connect time otherwise.
Sourcepub fn with_embedder_id(self, id: impl Into<String>) -> Self
pub fn with_embedder_id(self, id: impl Into<String>) -> Self
Set the embedder identifier this store is provisioned for; surfaced via
FilterableLongTermMemory::embedder_id() so a composer can hard-fail on
cross-embedder queries rather than drift silently.
Sourcepub fn with_max_connections(self, n: u32) -> Self
pub fn with_max_connections(self, n: u32) -> Self
Override the pool’s maximum connection count (default 5).
Sourcepub fn embedder_id(&self) -> &str
pub fn embedder_id(&self) -> &str
Embedder identifier configured for this store.
Trait Implementations§
Source§impl Clone for PgvectorConfig
impl Clone for PgvectorConfig
Source§fn clone(&self) -> PgvectorConfig
fn clone(&self) -> PgvectorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PgvectorConfig
impl RefUnwindSafe for PgvectorConfig
impl Send for PgvectorConfig
impl Sync for PgvectorConfig
impl Unpin for PgvectorConfig
impl UnsafeUnpin for PgvectorConfig
impl UnwindSafe for PgvectorConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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