MySQL Connector/Python Developer Guide

11.4 _mysql_connector.MySQL.autocommit() Method

Syntax:

ccnx.autocommit(bool)

Sets the autocommit mode.

Raises a ValueError exception if mode is not True or False.