From: "Alex R. Mosteo" <devnull@mailinator.com>
Subject: Re: Ada and PostgreSQL
Date: Tue, 23 Jan 2007 16:42:39 +0100
Date: 2007-01-23T16:42:39+01:00 [thread overview]
Message-ID: <51mom4F1l5v9lU1@mid.individual.net> (raw)
In-Reply-To: ep566o$5pp$1@cernne03.cern.ch
Maciej Sobczak wrote:
> Hi,
>
> I must have been quite a pain for you recently with my questions and
> nit-picking ;-), but at the end I have finished my exercise and built a
> *very* simple Ada client library for PostgreSQL.
> You can find it here:
>
> http://msobczak.com/prog/bin/pgAda.tar.gz
>
> Please consider it as a starting point for what should be a *true*
> database library, but there are also chances that in simpler projects it
> might be exactly what is needed.
>
> Your comments are of course welcome.
Have you taken a look at GNADE postgresql binding? It has some points in
common to yours; it is more limited in some aspects (transactions and query
parameters).
I'd look into making transactions in such a way that declaring it in some
scope provides automatic operation, e.g.:
declare
T : Transaction (Db'Access); -- Automatic start of transaction
-- via Initialize
begin
Query (.... T); -- Automatic rollback on failure here
end; -- Automatic commit on Finalize
I'm doing it with a wrapper over Gnu.Db.Postgresql and it is quite handy.
In any case is nice to see more support for this database.
next prev parent reply other threads:[~2007-01-23 15:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-23 14:30 Ada and PostgreSQL Maciej Sobczak
2007-01-23 15:42 ` Alex R. Mosteo [this message]
2007-03-28 4:27 ` Michael Erdmann
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox