microdb 0.4.0

A very small in-program database with cache, disk storage, etc.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::com_obj;

use super::RawObj;

impl RawObj for String {
    fn to_db(self) -> Vec<u8> {
        self.into_bytes()
    }

    fn from_db(x: Vec<u8>) -> Option<Self> {
        String::from_utf8(x).ok()
    }
}
com_obj!(String);