Skip to main content

validate_schema

Function validate_schema 

Source
pub async fn validate_schema(pool: &SqlitePool) -> ClawResult<()>
Expand description

Verify that all expected claw-core tables are present in the database.

Returns Ok(()) if every required table exists, or a ClawError::Config listing the missing tables.

§Errors

Returns a ClawError if the introspection query fails or a table is missing.