public inbox for [email protected]  
help / color / mirror / Atom feed
From: Daniel Fortunov <[email protected]>
To: Daniele Varrazzo <[email protected]>
Cc: Psycopg <[email protected]>
Cc: Paolo De Stefani <[email protected]>
Subject: Re: psycopg3 transactions
Date: Fri, 15 Oct 2021 22:43:37 +0100
Message-ID: <CAH1rg6aoUAOwrw6Osc4iCExckAXLL+wkJH4mAk7o29KsNYE1CQ@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<CA+mi_8bXjHTrzDLQ+n_6K2MHVsr0J32X1HA28Ey9O+-Zm6JaeQ@mail.gmail.com>
	<[email protected]>
	<CA+mi_8afF2jMifiLSvL99+Ztupy1me7xDNAv0g47WxHWbwN9vw@mail.gmail.com>
	<[email protected]>
	<CA+mi_8ZJy5yHovbjBhevWLhm9b3RH67qD+_5Mk+trfb1-Z19jQ@mail.gmail.com>
	<CA+mi_8ZvfQ3ndZDrRFX1XCfMyGLhkp5ZVq4Y92iZe4nxtkw_Yw@mail.gmail.com>
	<[email protected]>

Looks good to me too.

I like the progression from basic use, to connection context, to
transaction context. Really nice logical progression into
progressive levels of granular control.

One thing I didn't understand was the wording of this suggestion:

>
>    -
>
>    use an autocommit connection: conn.autocommit = True, eventually as
>    connect() parameter too;
>
>
Is this meant to convey:

>
>    -
>
>    use an autocommit connection: Set conn.autocommit = True (or you can
>    provide this as a connect() parameter);
>
>
Or have I misunderstood?

Dani

On Fri, 15 Oct 2021 at 21:59, Paolo De Stefani <[email protected]>
wrote:

> It seems much clearer to me now
> This makes me think that maybe it's worth trying to use an autocommit
> connection...
>
> Il 15/10/2021 12:56 Daniele Varrazzo ha scritto:
> > On Wed, 13 Oct 2021 at 19:28, Daniele Varrazzo
> > <[email protected]> wrote:
> >
> >> Pretty much everyone comes from psycopg2, so we should definitely
> >> improve the docs :D
> >
> > I have expanded the documentation about transaction behaviour.
> > Feedback is welcome.
> >
> > https://www.psycopg.org/psycopg3/docs/basic/transactions.html
> >
> > Paolo, Daniel: I am especially keen to have your feedback as one
> > newcomer and the other pretty much the authority in transaction
> > management :)
> >
> > Cheers,
> >
> > -- Daniele
>
> --
> Paolo De Stefani
>
>
>


view thread (28+ 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: psycopg3 transactions
  In-Reply-To: <CAH1rg6aoUAOwrw6Osc4iCExckAXLL+wkJH4mAk7o29KsNYE1CQ@mail.gmail.com>

* 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