A good way of managing connections and cursors with Python using the MariaDB Connector/Python?
I’ve been implementing a lot of database interaction into Python recently and I’ve noticed
there’s no easy way to automate connection and session management resulting in boilerplate
code into every function related to a transaction.