Ubuntu TechHive
Inside SQLx: How Rust Checks SQL Before Your Application Runs
event.detail
The Ubuntu TechHive North America

Atlanta, Georgia, USA

Inside SQLx: How Rust Checks SQL Before Your Application Runs

· 2 hours Upcoming

What to Expect

section.description

A practical two-hour session investigating how SQLx can detect invalid SQL, incompatible parameters, missing columns, and incorrect Rust mappings during compilation rather than after deployment.

The session follows a query through the boundary between Rust and the database: from the SQL text and bound parameters, through schema inspection and type analysis, to the Rust value returned to the application. We will deliberately break queries, change schemas, and introduce type mismatches to understand what SQLx can prove before runtimeโ€”and what it cannot.

The emphasis is not on memorizing an API. It is on understanding the engineering model behind compile-time checked SQL, the role of migrations in preserving that model, and the practical consequences for local development, testing, continuous integration, and deployment.

Audience: developers who want to understand how Rust can provide stronger guarantees around ordinary SQL without replacing SQL with an ORM or query language.

Outcomes:

  • Trace how SQLx validates a query during compilation
  • Understand how database metadata informs Rust type checking
  • See compile-time failures caused by invalid queries and incompatible result types
  • Understand why the current schema matters during a build
  • Connect database migrations to query correctness
  • Distinguish checked macros from runtime query APIs
  • Evaluate when compile-time SQL checking improves a project and when it adds friction

Format: two hours with a guided investigation, broken-query experiments, migration examples, discussion of operational tradeoffs, and a reusable checklist for database code.

location.conf

Location

Atlanta, Georgia, USA
Online
details.yml

Details

Date & Time
July 25, 2026 at 10:30 AM ยท EDT
Time Zone
America/Toronto
Duration
2 hours
Organized by
The Ubuntu TechHive North America