Skip to main content

StorageSchemaOps

Trait StorageSchemaOps 

Source
pub trait StorageSchemaOps:
    Send
    + Sync
    + Debug {
Show 22 methods // Required methods fn create_space( &mut self, space: &mut SpaceInfo, ) -> Result<bool, StorageError>; fn drop_space(&mut self, space: &str) -> Result<bool, StorageError>; fn clear_space(&mut self, space: &str) -> Result<bool, StorageError>; fn create_tag( &mut self, space: &str, tag: &TagInfo, ) -> Result<u32, StorageError>; fn alter_tag( &mut self, space: &str, tag: &str, additions: Vec<PropertyDef>, deletions: Vec<String>, new_comment: Option<String>, ) -> Result<bool, StorageError>; fn rename_vertex_property( &mut self, label: u32, old_name: &str, new_name: &str, ) -> Result<(), StorageError>; fn rename_tag_property( &mut self, space: &str, tag: &str, old_name: &str, new_name: &str, ) -> Result<bool, StorageError>; fn rename_tag( &mut self, space: &str, old_name: &str, new_name: &str, ) -> Result<bool, StorageError>; fn drop_tag(&mut self, space: &str, tag: &str) -> Result<bool, StorageError>; fn create_edge_type( &mut self, space: &str, edge: &EdgeTypeInfo, ) -> Result<u32, StorageError>; fn alter_edge_type( &mut self, space: &str, edge_type: &str, additions: Vec<PropertyDef>, deletions: Vec<String>, new_comment: Option<String>, ) -> Result<bool, StorageError>; fn rename_edge_property( &mut self, space: &str, edge_type: &str, old_name: &str, new_name: &str, ) -> Result<bool, StorageError>; fn rename_edge_type( &mut self, space: &str, old_name: &str, new_name: &str, ) -> Result<bool, StorageError>; fn update_edge_endpoints( &mut self, space: &str, edge_type: &str, src_tag_name: &str, dst_tag_name: &str, ) -> Result<bool, StorageError>; fn drop_edge_type( &mut self, space: &str, edge_type: &str, ) -> Result<bool, StorageError>; fn create_tag_index( &mut self, space: &str, info: &Index, ) -> Result<bool, StorageError>; fn drop_tag_index( &mut self, space: &str, index: &str, ) -> Result<bool, StorageError>; fn rebuild_tag_index( &mut self, space: &str, index: &str, ) -> Result<bool, StorageError>; fn create_edge_index( &mut self, space: &str, info: &Index, ) -> Result<bool, StorageError>; fn drop_edge_index( &mut self, space: &str, index: &str, ) -> Result<bool, StorageError>; fn rebuild_edge_index( &mut self, space: &str, index: &str, ) -> Result<bool, StorageError>; // Provided method fn create_tag_with_estimate( &mut self, space: &str, tag: &TagInfo, estimated_rows: Option<u64>, ) -> Result<u32, StorageError> { ... }
}
Expand description

Schema/space/tag/edge-type/index DDL operations.

Required Methods§

Source

fn create_space(&mut self, space: &mut SpaceInfo) -> Result<bool, StorageError>

Source

fn drop_space(&mut self, space: &str) -> Result<bool, StorageError>

Source

fn clear_space(&mut self, space: &str) -> Result<bool, StorageError>

Source

fn create_tag( &mut self, space: &str, tag: &TagInfo, ) -> Result<u32, StorageError>

Source

fn alter_tag( &mut self, space: &str, tag: &str, additions: Vec<PropertyDef>, deletions: Vec<String>, new_comment: Option<String>, ) -> Result<bool, StorageError>

Source

fn rename_vertex_property( &mut self, label: u32, old_name: &str, new_name: &str, ) -> Result<(), StorageError>

Source

fn rename_tag_property( &mut self, space: &str, tag: &str, old_name: &str, new_name: &str, ) -> Result<bool, StorageError>

Source

fn rename_tag( &mut self, space: &str, old_name: &str, new_name: &str, ) -> Result<bool, StorageError>

Source

fn drop_tag(&mut self, space: &str, tag: &str) -> Result<bool, StorageError>

Source

fn create_edge_type( &mut self, space: &str, edge: &EdgeTypeInfo, ) -> Result<u32, StorageError>

Source

fn alter_edge_type( &mut self, space: &str, edge_type: &str, additions: Vec<PropertyDef>, deletions: Vec<String>, new_comment: Option<String>, ) -> Result<bool, StorageError>

Source

fn rename_edge_property( &mut self, space: &str, edge_type: &str, old_name: &str, new_name: &str, ) -> Result<bool, StorageError>

Source

fn rename_edge_type( &mut self, space: &str, old_name: &str, new_name: &str, ) -> Result<bool, StorageError>

Source

fn update_edge_endpoints( &mut self, space: &str, edge_type: &str, src_tag_name: &str, dst_tag_name: &str, ) -> Result<bool, StorageError>

Source

fn drop_edge_type( &mut self, space: &str, edge_type: &str, ) -> Result<bool, StorageError>

Source

fn create_tag_index( &mut self, space: &str, info: &Index, ) -> Result<bool, StorageError>

Source

fn drop_tag_index( &mut self, space: &str, index: &str, ) -> Result<bool, StorageError>

Source

fn rebuild_tag_index( &mut self, space: &str, index: &str, ) -> Result<bool, StorageError>

Source

fn create_edge_index( &mut self, space: &str, info: &Index, ) -> Result<bool, StorageError>

Source

fn drop_edge_index( &mut self, space: &str, index: &str, ) -> Result<bool, StorageError>

Source

fn rebuild_edge_index( &mut self, space: &str, index: &str, ) -> Result<bool, StorageError>

Provided Methods§

Source

fn create_tag_with_estimate( &mut self, space: &str, tag: &TagInfo, estimated_rows: Option<u64>, ) -> Result<u32, StorageError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§