[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] gmPG higher-level features?
From: |
Horst Herb |
Subject: |
Re: [Gnumed-devel] gmPG higher-level features? |
Date: |
Sun, 21 Sep 2003 15:22:35 +1000 |
User-agent: |
KMail/1.5.9 |
On Sun, 21 Sep 2003 15:06, Ian Haywood wrote:
> Looking at the code, I'm not sure why we can't have 3 functions in
> gmPG:
> run_select (service, query, args)
>
> run_update (service, query, args)
>
> run_list (service, [(query, args), ...])
>
> these cache connections and cursors as appropriate,
> take care
> of error reporting, grab read or read/write connections as
> appropriate, etc.
>
> run_list takes a set of commands which are run on a
> read/write
> connection in order, which a single commit at the end (i.e a
> transaction)
Sounds like a good idea
Horst