Skip to main content

run

Function run 

Source
pub async fn run(schema_path: &Path, database_url: &str) -> Result<()>
Expand description

Validate that declared fact tables match database schema.

§Arguments

  • schema_path - Path to schema.json file
  • database_url - Database connection string

§Returns

Success if all validations pass, error otherwise

§Example

fraiseql validate facts --schema schema.json --database postgresql://localhost/mydb