سؤال

umysql is a fast MySQL Python driver with spotty documentation. I'm trying to understand how commit and auto-commit work. How can I enable or disable auto-commit? Is it on by default?

There's no connection.commit() function as in MySQLdb - If autocommit is off, how do I trigger a commit?

هل كانت مفيدة؟

المحلول

You can use umysqldb wrapper around umysql and call connection.commit() method.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top