pub struct ColonDB {
pub data: IndexMap<String, Vec<String>>,
/* private fields */
}
Fields§
§data: IndexMap<String, Vec<String>>
Implementations§
Source§impl ColonDB
impl ColonDB
pub fn find_database(file_name: &str) -> Self
pub fn save_data_to_file(&self) -> Result<()>
pub fn insert_item_into_db( &mut self, key: String, column: String, value: String, )
pub fn insert_row_into_db(&mut self, key: String, entry_vec: Vec<String>)
pub fn delete_item(&mut self, key: &str, column: String)
pub fn delete_column(&mut self, column: String)
pub fn delete_row(&mut self, key: &str)
pub fn select_item(&self, key: &str, column: &str) -> Option<String>
pub fn select_data( &self, row_range: Option<Range<usize>>, column_range: Option<Vec<String>>, ) -> ColonDB
pub fn print_database(&self)
Auto Trait Implementations§
impl Freeze for ColonDB
impl RefUnwindSafe for ColonDB
impl Send for ColonDB
impl Sync for ColonDB
impl Unpin for ColonDB
impl UnwindSafe for ColonDB
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