Skip to content

🌊 Confluence

Choose a tag to compare

@mychidarko mychidarko released this 16 Aug 19:53
· 2 commits to v5.x since this release

v5.1 - 16 Aug 2026

Added

  • Added connectionResolver(), which lets Leaf Db borrow a connection owned by something else instead of opening its own. You hand it a function that returns a PDO, and that function only runs the first time a query actually needs the connection, so registering one costs nothing. Leaf MVC uses this to run your models, db(), and Leaf Auth on a single shared connection per request, which creates a sort of perfect connect sync instead of previous patches