canonical / sqlair

Friendly type mapping for SQL databases
Apache License 2.0
16 stars 8 forks source link

Test for prepared statement leaks #119

Closed letFunny closed 7 months ago

letFunny commented 8 months ago

Created wrapper driver to monitor statement creation and deletion while calling SQLite behind the scenes.

Before this change the tests did not flag when statements were not closed properly, for example if you commented the following line no tests would have failed. After this change, the tests are more robust and they can now verify that the cache and finalizers are working correctly. This is especially important now that we want to overhaul the cache implementation and we want to verify it is still correct.