Simple to use pymysql wrappers. An understanding of SQL is not required but makes use easier.
- tested this in 3.8.1
- uses f-strings so it should be compatible with 3.6+
- uses
__enter__
and__exit__
which I believe was first used in 3.5
Query classes
- Can be used with the python
with
statement - Can be used like a normal class
Find examples in the MySQL4.py file.
Currently installing MySQL4 via pip is not supported.
- Install the pymysql module.
pip install pymysql
- Place the MySQL4.py file in the same directory as the script.
- I had written another wrapper which had got to version 3.
- It was horribly bloated and wasn't well written.
- It supported python2, which is at it's end of life and f-strings make formatting text easy.