Commit Graph

4 Commits

Author SHA1 Message Date
Username
e24f68500c style: normalize indentation and improve code style
- convert tabs to 4-space indentation
- add docstrings to modules and classes
- remove unused import (copy)
- use explicit object inheritance
- use 'while True' over 'while 1'
- use 'while args' over 'while len(args)'
- use '{}' over 'dict()'
- consistent string formatting
- Python 2/3 compatible Queue import
2025-12-20 23:18:45 +01:00
Username
c054fa3c11 mysqlite: enable WAL mode for better concurrency 2025-12-20 18:25:33 +01:00
rofl0r
aba74c8eab mysqlite.py: improve
1) use a common try/except block for all ops
2) do not display query and args when DB is locked (could be several
   hundreds rows)
3) re-raise non locking-related exceptions (e.g. a wrong sql statement)
4) split executemany rows into chunks of 500 (so the caller doesn't have
   to do it)
2019-01-18 20:42:15 +00:00
mickael
85043d8e8a move includes in root directory 2019-01-05 00:22:28 +00:00