Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81643 > unrolled thread

Re: Db transactions and locking

Started byDennis Lee Bieber <wlfraed@ix.netcom.com>
First post2014-11-27 12:46 -0500
Last post2014-11-27 12:46 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Db transactions and locking Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-11-27 12:46 -0500

#81643 — Re: Db transactions and locking

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2014-11-27 12:46 -0500
SubjectRe: Db transactions and locking
Message-ID<mailman.16376.1417110374.18130.python-list@python.org>
On Thu, 27 Nov 2014 12:24:39 +0200, "Frank Millman" <frank@chagford.com>
declaimed the following:


>All Python database adaptors that I have used start a transaction when you 
>open a cursor. I have just re-read DB-API 2.0, and I cannot see anything 
>that specifies this behaviour, but AFAICT this is what happens.
>

	Really?

https://www.python.org/dev/peps/pep-0249/
"""
.commit ()

    Commit any pending transaction to the database.

    Note that if the database supports an auto-commit feature, this must be
initially off. An interface method may be provided to turn it back on.

    Database modules that do not support transactions should implement this
method with void functionality.
"""
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web