hgzimmerman / diesel_test_setup Goto Github PK
View Code? Open in Web Editor NEWCommon utility for setting up databases for testing using Diesel
License: MIT License
Common utility for setting up databases for testing using Diesel
License: MIT License
The non-postgres tests may need to be behind feature flags to prevent the tests from failing in the environment where this is usually developed (another project that this project is a submodule of)
At least in the Readme, and ideally in a dedicated directory.
This would eliminate some of the ambiguity in dropping a pool, at a minor expense to ergonomics.
The bad case currently is that someone doesn't assign the tuple returned by the setup functions.
This causes the tuple's children to be dropped in reverse order, causing an error when the Cleanup is dropped first.
By putting both the pool and cleanup in a structure, the drop order should be enforced.
The library seems very useful, and as you say in the README, potentially feature complete.
Any plans to publish to crates.io?
I'm reasonably confident that the current strategy works fine for MySql in exactly the same way as Postgres, while I question this library's utility for Sqlite.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.