thingd 0.52.1

Core primitives for thingd, an object-shaped local memory engine for apps and agents.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::env;
use thingd::SqliteThingStore;

fn main() {
    let path = env::var("THINGD_PATH").unwrap_or_else(|_| "data.db".to_string());
    println!("Opening {path}...");
    let store = SqliteThingStore::open(&path).unwrap_or_else(|e| {
        eprintln!("Failed to open database: {e}");
        std::process::exit(1);
    });
    println!("Opened.");
    drop(store);
}