Rust Guiding Me Towards The Right Thing™

2025-03-30

While contributing to the Rust project bors, the author encountered a deployment issue caused by an SQL migration. The problem stemmed from adding a NOT NULL column to a populated table without providing a default value. The author not only fixed the bug but also leveraged Rust and the sqlparser crate to write an integration test that automatically detects such issues, showcasing Rust's strengths in encouraging high-quality code and preventing errors. The entire process was efficient and convenient, highlighting the benefits of Rust's powerful type system and IDE autocompletion.

Development