neuxdb 0.1.0

A super simple, embedded, encrypted database like SQLite, using pipe-separated files and age encryption.
Documentation
1
2
3
4
5
6
7
use super::{get_data_dir, TABLE_EXT};
use crate::error::Result;
use std::path::PathBuf;
pub fn table_path(name: &str) -> Result<PathBuf> {
    let safe = super::sanitize_table_name::sanitize_table_name(name)?;
    Ok(PathBuf::from(get_data_dir()).join(format!("{}.{}", safe, TABLE_EXT)))
}