문제

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