Python DB API - commit() v. execute("commit transaction")?

Jon Ribbens jon+usenet at unequivocal.eu
Wed May 31 10:16:35 EDT 2017


On 2017-05-31, Chris Angelico <rosuav at gmail.com> wrote:
> On Thu, Jun 1, 2017 at 12:10 AM, Jon Ribbens <jon+usenet at unequivocal.eu> wrote:
>> ... unless you want to call .commit() or .rollback().
>> Which is where we came in.
>
> Technically you CAN commit from the cursor:
>
> cur.connection.commit()

That's an optional extension.



More information about the Python-list mailing list