reefdb 0.1.0

ReefDB is a minimalistic, in-memory and on-disk database management system written in Rust, implementing basic SQL query capabilities and full-text search.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::collections::HashSet;

pub trait Search {
    type NewArgs;
    fn new(args: Self::NewArgs) -> Self;
    fn search(&self, table: &str, column: &str, query: &str) -> HashSet<usize>;

    fn add_column(&mut self, table: &str, column: &str);
    fn add_document(&mut self, table: &str, column: &str, row_id: usize, text: &str);
    fn remove_document(&mut self, table: &str, column: &str, row_id: usize);
    fn update_document(&mut self, table: &str, column: &str, row_id: usize, text: &str);
}