pub struct PostgresDovecote { /* private fields */ }Expand description
PostgreSQL adapter for Dovecote’s durable event and delivery schema.
Implementations§
Source§impl PostgresDovecote
impl PostgresDovecote
Sourcepub fn for_tenant(&self, tenant: TenantId) -> TenantDovecote
pub fn for_tenant(&self, tenant: TenantId) -> TenantDovecote
Creates a handle whose ordinary operations are restricted to tenant.
Sourcepub fn admin(&self) -> AdminDovecote
pub fn admin(&self) -> AdminDovecote
Creates an explicit all-tenant administrative handle.
This handle does not provide authorization. Applications must construct it only around a separately authorized worker or operator pool.
Sourcepub async fn check_schema(&self) -> Result<(), SchemaError>
pub async fn check_schema(&self) -> Result<(), SchemaError>
Verifies that the pool’s current PostgreSQL schema satisfies Dovecote
migration version 2.
§Errors
Returns an error for an unsupported backend, missing or incompatible migration markers, tables, constraints or indexes, or failed catalog reads.
Trait Implementations§
Source§impl Clone for PostgresDovecote
impl Clone for PostgresDovecote
Source§fn clone(&self) -> PostgresDovecote
fn clone(&self) -> PostgresDovecote
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 !RefUnwindSafe for PostgresDovecote
impl !UnwindSafe for PostgresDovecote
impl Freeze for PostgresDovecote
impl Send for PostgresDovecote
impl Sync for PostgresDovecote
impl Unpin for PostgresDovecote
impl UnsafeUnpin for PostgresDovecote
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