pub struct GraphRegistry { /* private fields */ }Expand description
The graphs defined in one session, by name. Names are compared as given (the DDL normalizes identifiers the way DataFusion does for tables).
Implementations§
Source§impl GraphRegistry
impl GraphRegistry
Sourcepub fn all(&self) -> Vec<Arc<PropertyGraph>>
pub fn all(&self) -> Vec<Arc<PropertyGraph>>
Every graph, sorted by name.
Sourcepub fn put(&self, def: impl Into<PropertyGraph>) -> Option<Arc<PropertyGraph>>
pub fn put(&self, def: impl Into<PropertyGraph>) -> Option<Arc<PropertyGraph>>
Add or replace def; returns the definition it replaced.
Sourcepub fn put_with_files(
&self,
def: PropertyGraph,
files: Vec<FileTable>,
) -> Option<Arc<PropertyGraph>>
pub fn put_with_files( &self, def: PropertyGraph, files: Vec<FileTable>, ) -> Option<Arc<PropertyGraph>>
Add or replace def, with the tables it opened from file paths.
Sourcepub fn remove(&self, name: &str) -> Option<Arc<PropertyGraph>>
pub fn remove(&self, name: &str) -> Option<Arc<PropertyGraph>>
Remove the graph called name; returns it if it existed.
Sourcepub fn file_table(
&self,
graph: &str,
table: &TableReference,
) -> Option<Arc<dyn TableProvider>>
pub fn file_table( &self, graph: &str, table: &TableReference, ) -> Option<Arc<dyn TableProvider>>
The table graph graph opened from the file path table, if table
is one of its file tables.
Mark the graph called name unavailable: it could not be defined when
the database was opened, and message says why. Using it fails with
message until it is dropped or replaced. definition is its stored
definition, if known, which SHOW GRAPHS lists.
Why the graph called name is unavailable, if it is.
Every unavailable graph, sorted by name.
Forget that the graph called name is unavailable (it was dropped or
replaced); whether it was.
Trait Implementations§
Source§impl Debug for GraphRegistry
impl Debug for GraphRegistry
Auto Trait Implementations§
impl !Freeze for GraphRegistry
impl !RefUnwindSafe for GraphRegistry
impl !UnwindSafe for GraphRegistry
impl Forget for GraphRegistry
impl Move for GraphRegistry
impl Send for GraphRegistry
impl Sync for GraphRegistry
impl Unpin for GraphRegistry
impl UnsafeUnpin for GraphRegistry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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