Skip to main content

verify_postgres

Function verify_postgres 

Source
pub async fn verify_postgres(
    database_url: &str,
    statements: &[&ComposedSql],
) -> Result<()>
Expand description

Verify composed SQL statements against a PostgreSQL database.

Connects to the database and attempts to PREPARE each statement. This validates that the SQL syntax is correct and that referenced tables/columns exist.