From 211b1226037eaee3b723ba359255e91196e98b2f Mon Sep 17 00:00:00 2001 From: Aldo Mateli Date: Sat, 19 Oct 2024 19:57:47 +0100 Subject: [PATCH] Add container.close message --- readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.md b/readme.md index 7ca523b..82c2037 100644 --- a/readme.md +++ b/readme.md @@ -83,6 +83,9 @@ def db_session_factory(db_session: Session) -> Iterator[Session]: yield sess ``` +*Note*: If you use generator factories, call `container.close()` on termination for the necessary +cleanup to take place. + **3. Use**