'Enable or disable autocommit.'

def set_autocommit(self, autocommit):

    self.validate_no_atomic_block()
    self.ensure_connection()
    self._set_autocommit(autocommit)
    self.autocommit = autocommit
