508e0256893d838e6eac7144b36277980de67056
The insert method returns the value of the primary key for the inserted row. But for tables that do not have any primary key, it raises an IndexError, which is clearly wrong. At best it should return None in such cases and avoid raising any exception.
dataset: databases for lazy people
In short, dataset makes reading and writing data in databases as simple as reading and writing JSON files.
Description
Upgraded dataset version from https://github.com/pudo/dataset/. This one uses new SQLAlchemy2.
870 KiB
Languages
Python
99.5%
Makefile
0.5%