Click any tag below to further narrow down your results
Links
Sqldef allows you to manage database schemas using plain SQL across multiple database systems like MySQL and PostgreSQL. You define your schema in a single SQL file, and sqldef generates the necessary migrations to update your database. It supports idempotent operations, making it safe to run multiple times without unintended changes.
Rust encourages developers to adopt best practices, such as writing tests for potential issues. In this post, the author shares their experience with a SQL migration bug in the bors project, and how they implemented a test using the sqlparser crate to prevent future occurrences of similar bugs. The article highlights the ease and effectiveness of testing in Rust, even for complex scenarios.