I am trying to access some records using MySQL Connector/Python but I am unable to understand how start_transaction()
is used.
I would be great if someone could shed some light on uses cases where it is required.
Update: After reading the docs carefully it looks like, the start_transaction()
method is only required when autocommit=True
. Is that true? I am still confused over this and documentation doesn't provide any examples.
start_transaction()
is only useful whenautocommit=True
. Am I right? or Can I use it whenautocommit=False
? – An