pub enum ExternalDB {
SqliteLocal(SqliteLocal),
}Variants§
SqliteLocal(SqliteLocal)
Implementations§
Source§impl ExternalDB
impl ExternalDB
pub async fn build( ext_db: AveExternalDBFeatureConfig, durability: bool, manager: ActorRef<DBManager>, spec: Option<MachineSpec>, ) -> Result<Self, DatabaseError>
pub fn get_subject(&self) -> impl Subscriber<Ledger>
pub fn get_sink_data(&self) -> impl Subscriber<SinkDataEvent>
pub fn get_request_tracking(&self) -> impl Subscriber<RequestTrackingEvent>
pub fn get_register(&self) -> impl Subscriber<RegisterEvent>
pub fn metrics_snapshot(&self) -> DbMetricsSnapshot
pub fn register_prometheus_metrics(&self, registry: &mut Registry)
pub async fn delete_subject( &self, subject_id: &str, ) -> Result<(), DatabaseError>
pub async fn shutdown(&self) -> Result<(), DatabaseError>
Trait Implementations§
Source§impl Clone for ExternalDB
impl Clone for ExternalDB
Source§fn clone(&self) -> ExternalDB
fn clone(&self) -> ExternalDB
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ReadStore for ExternalDB
impl ReadStore for ExternalDB
fn get_aborts<'life0, 'life1, 'async_trait>(
&'life0 self,
subject_id: &'life1 str,
query: AbortsQuery,
) -> Pin<Box<dyn Future<Output = Result<PaginatorAborts, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_subject_state<'life0, 'life1, 'async_trait>(
&'life0 self,
subject_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<SubjectDB, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_events<'life0, 'life1, 'async_trait>(
&'life0 self,
subject_id: &'life1 str,
query: EventsQuery,
) -> Pin<Box<dyn Future<Output = Result<PaginatorEvents, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_event_sn<'life0, 'life1, 'async_trait>(
&'life0 self,
subject_id: &'life1 str,
sn: u64,
) -> Pin<Box<dyn Future<Output = Result<LedgerDB, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_first_or_end_events<'life0, 'life1, 'async_trait>(
&'life0 self,
subject_id: &'life1 str,
quantity: Option<u64>,
reverse: Option<bool>,
event_type: Option<EventRequestType>,
) -> Pin<Box<dyn Future<Output = Result<Vec<LedgerDB>, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_governances<'life0, 'async_trait>(
&'life0 self,
active: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<Vec<GovsData>, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_subjects<'life0, 'life1, 'async_trait>(
&'life0 self,
governance_id: &'life1 str,
active: Option<bool>,
schema_id: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<Vec<SubjsData>, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for ExternalDB
impl !RefUnwindSafe for ExternalDB
impl Send for ExternalDB
impl Sync for ExternalDB
impl Unpin for ExternalDB
impl UnsafeUnpin for ExternalDB
impl !UnwindSafe for ExternalDB
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