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
8
9
10
11
12
13
use crate::config;
use crate::error::Result;
pub fn drop_table(name: &str) -> Result<()> {
    let table_path = config::table_path(name)?;
    let schema_path = config::schema_path(name)?;
    if table_path.exists() {
        std::fs::remove_file(&table_path)?;
    }
    if schema_path.exists() {
        std::fs::remove_file(&schema_path)?;
    }
    Ok(())
}