MySQL Connector/Python Developer Guide
Syntax:
ccnx.autocommit(bool)
bool
Sets the autocommit mode.
Raises a ValueError exception if mode is not True or False.
ValueError
mode
True
False