Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/space.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,14 @@ impl Space {
return crate::schema::space::drop_space(self.id);
}

/// Create space struct by space ID
///
/// - `id' - space ID
/// Returns space with passed ID
pub fn new_from_id(id: u32) -> Self {
Self { id }
}

/// Find space by name.
///
/// This function performs SELECT request to `_vspace` system space.
Expand Down