rasterizeddb_core 0.0.8

A schemaless, high-performance database written in Rust, designed for speed and scalability.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use ahash::RandomState;
use once_cell::sync::Lazy;

pub(crate) static HASHER: Lazy<RandomState> = Lazy::new(|| {
    let hash_builder = RandomState::with_seed(1);
    return hash_builder;
});

pub(crate) fn get_hash(query: &str) -> u64 {
    let hash = HASHER.hash_one(query);
    return hash;
}