From 042441c47e150f8a4576a16679a7ba1165811580 Mon Sep 17 00:00:00 2001 From: Ramzi Sabra Date: Sat, 23 Mar 2024 23:39:45 +0200 Subject: [PATCH] fixed motivation in docs --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 757e162..10adbde 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,7 @@ //! //! ## Motivation //! -//! Rather than simply providing a database connection pool that allows multiple connections to the same database, `db-pool` maintains a pool of separate isolated databases in order to allow running database-tied tests in parallel. It also handles the lifecycles of those databases: whenever you pick a database out of the pool, you can be sure that the database is clean and ready to be used, and that no other tests are connected to the database you are using in any one test. +//! When running tests against a database-tied service, such as a web server, a test database is generally used. However, this comes with its own set of difficulties: //! //! 1) The database has to be either (a) dropped and re-created or (b) cleaned before every test. //! 2) Tests have to run serially in order to avoid cross-contamination.