Skip to main content

GraphLifecycle

Trait GraphLifecycle 

Source
pub trait GraphLifecycle {
    // Required methods
    fn has_graph(&self, name: &str) -> StorageBackendResult<bool>;
    fn has_namespace(&self, name: &str) -> StorageBackendResult<bool>;
    fn create_graph(&self, name: String) -> StorageBackendResult<bool>;
    fn drop_graph(&self, name: &str) -> StorageBackendResult<bool>;
    fn list_graph_labels(
        &self,
        graph: &str,
    ) -> StorageBackendResult<Option<Vec<GraphLabelInfo>>>;
    fn create_graph_label(
        &self,
        graph: &str,
        label: &str,
        kind: LabelKind,
    ) -> StorageBackendResult<bool>;
    fn drop_graph_label(
        &self,
        graph: &str,
        label: &str,
    ) -> StorageBackendResult<bool>;
    fn graph_label_relation_dependents(
        &self,
        graph: &str,
        label: &str,
    ) -> StorageBackendResult<Vec<String>>;
    fn rename_graph(&self, from: &str, to: &str) -> StorageBackendResult<bool>;
}
Expand description

Graph catalog operations inside the public graph API’s existing transaction boundary.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§