Skip to main content

Module data_storage

Module data_storage 

Source
Expand description

Resolves where application files live on each platform.

use kasl::libs::data_storage::DataStorage;

let storage = DataStorage::new();
let db_path = storage.get_path("kasl.db")?;
let config_path = storage.get_path("config.json")?;

Structs§

DataStorage
The application data directory, resolved once at construction.

Constants§

APP_METADATA_ENCRYPTION_IV
APP_METADATA_ENCRYPTION_KEY
APP_METADATA_NAME
APP_METADATA_OWNER
APP_METADATA_VERSION