From 4aab7e68659e607c1b532f0ae853faa1a914e9d2 Mon Sep 17 00:00:00 2001 From: jpic Date: Wed, 21 Jan 2026 19:17:59 +0100 Subject: [PATCH] docs: Document the *requirement* of closing async sqlite connection --- basics/database/async-sqlite.mdx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/basics/database/async-sqlite.mdx b/basics/database/async-sqlite.mdx index f0c4ba476..044fb7ba7 100644 --- a/basics/database/async-sqlite.mdx +++ b/basics/database/async-sqlite.mdx @@ -21,6 +21,11 @@ db = AsyncSqliteDb(db_file="tmp/data.db") # Setup a basic agent with the SQLite database agent = Agent(db=db) + +# ... do your work with the agent + +# and close the DB ! Otherwise your program won't exit +await agent.db.close() ``` ## Params