Skip to main content

health_check

Function health_check 

Source
pub async fn health_check(db: &ThingsDatabase) -> Result<()>
Expand description

Perform a health check on the database

§Examples

use things3_cli::health_check;
use things3_core::ThingsDatabase;

let db = ThingsDatabase::new(std::path::Path::new("test.db")).await?;
health_check(&db).await?;

§Errors

Returns an error if the database is not accessible