As it was mentioned above db_session() can be used as a decorator or a context manager. It can receive parameters which are described in the API Reference.
In this paragraph for the API Reference the following link is used https://docs.ponyorm.org/transactions.html#db-session
which is incorrect as the correct link is the following https://docs.ponyorm.org/api_reference.html#transactions-db-session
https://docs.ponyorm.org/transactions.html#parameters-of-db-session
In this paragraph for the
API Reference
the following link is usedhttps://docs.ponyorm.org/transactions.html#db-session
which is incorrect as the correct link is the followinghttps://docs.ponyorm.org/api_reference.html#transactions-db-session