pub struct KnowledgeRuntime { /* private fields */ }Implementations§
Source§impl KnowledgeRuntime
impl KnowledgeRuntime
pub fn new(result_cache_capacity: usize) -> Self
pub fn install_provider<F>( &self, kind: ProviderKind, datasource_id: DatasourceId, build: F, ) -> KnowledgeResult<Generation>
pub fn configure_result_cache( &self, enabled: bool, capacity: usize, ttl: Duration, )
pub fn current_generation(&self) -> Option<Generation>
pub fn snapshot(&self) -> RuntimeSnapshot
pub fn current_metadata_scope(&self) -> MetadataCacheScope
pub fn current_provider_kind(&self) -> Option<ProviderKind>
pub fn record_result_cache_hit(&self)
pub fn record_result_cache_miss(&self)
pub fn record_metadata_cache_hit(&self)
pub fn record_metadata_cache_miss(&self)
pub fn record_local_cache_hit(&self)
pub fn record_local_cache_miss(&self)
pub fn execute(&self, req: &QueryRequest) -> KnowledgeResult<QueryResponse>
pub fn execute_first_row_fields( &self, sql: &str, params: &[DataField], cache_policy: CachePolicy, ) -> KnowledgeResult<RowData>
pub async fn execute_async( &self, req: &QueryRequest, ) -> KnowledgeResult<QueryResponse>
pub async fn execute_first_row_fields_async( &self, sql: &str, params: &[DataField], cache_policy: CachePolicy, ) -> KnowledgeResult<RowData>
Auto Trait Implementations§
impl !Freeze for KnowledgeRuntime
impl RefUnwindSafe for KnowledgeRuntime
impl Send for KnowledgeRuntime
impl Sync for KnowledgeRuntime
impl Unpin for KnowledgeRuntime
impl UnsafeUnpin for KnowledgeRuntime
impl UnwindSafe for KnowledgeRuntime
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> 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