Harden SQLite test setup
Rust Version
stable
Diesel Version
main
Diesel Features
sqlite
Database Version
- sqlite 3.x
Operating System Version
Linux
What happened?
We would like to harden the SQLite setup to perform more checks. SQLite offers a SQLITE_DEBUG compile time option that performs a lot of internal checks and verifies that the API is called correctly.
What did you expect to happen?
We extend the sqlite_bundled CI job to set this compile time option to perform more checks:
We already build our own copy of libsqlite3 there via the bundled feature of libsqlite3-sys. We can use the LIBSQLITE3_FLAGS environment variable to pass in additional compile time flags for libsqlite3
This might uncover test failures that need to be triaged and fixed separately.
Checklist
I have already looked over the issue tracker and the discussion forum for similar possible closed issues.
This issue can be reproduced on Rust's stable channel. (Please submit the issue in the Rust issue tracker instead if that's not the case)
This issue can be reproduced without requiring a third party crate
Source: diesel-rs/diesel