public inbox for [email protected]  
help / color / mirror / Atom feed
From: Christophe Pettus <[email protected]>
To: Reuben Rissler <[email protected]>
Cc: [email protected]
Subject: Re: Nested transactions support for code composability
Date: Sat, 15 Feb 2020 12:55:08 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <CAH1rg6YS5n6PjiV=9cBr2E--oKXtUuL=S7fNPs+Y6BuwRA0iGA@mail.gmail.com>
	<CAH1rg6bzuNNcJGn94fLA2FTo08O3xxMDd-jos3g_5JEbhuTOqA@mail.gmail.com>
	<[email protected]>



> On Feb 15, 2020, at 10:24, Reuben Rissler <[email protected]> wrote:
> This is interesting, to say the least. I use psycopg2 a lot, but I never got around to researching psycopg2 for this type of action. I can't help you out on how to get this into psycopg2 officially, and I don't even know if / when I'll use it, but it is nice to know I'm not the only one who has thought in patterns like this.

This has been implemented by the Django atomic() context manager for quite some time, in fact.
--
-- Christophe Pettus
   [email protected]






view thread (6+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Nested transactions support for code composability
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox