aboutsummaryrefslogtreecommitdiff
path: root/gn_libs/mysqldb.py
AgeCommit message (Collapse)Author
2024-12-06Move the commit() call to the success pathFrederick Muriuki Muriithi
The `finally` clause gets run whether or not the try succeeds. It only makes sense to run the commit on success, so we move it into the try, just after yielding the connection.
2024-11-22Import missing symbol.Frederick Muriuki Muriithi
2024-11-22Provide a means to debug queries that have been run.Frederick Muriuki Muriithi
It is sometimes necessary, when debugging, to see what query was actually run, in order to make sense of, and fix failures. This commit provides a means to see what the actual query that was run look(s/ed) like.
2024-11-21Add mysqldb moduleFrederick Muriuki Muriithi
This contains common code to connect to MariaDB with Python's mysqlclient library.