[Libpqxx-general] isPrepared method

Jeroen Vermeulen jtv at xs4all.nl
Fri Apr 3 15:33:02 UTC 2009


Maurice Gittens wrote:

> is the something like an isPrepared method on a pqxx::connection 
> connection object that I can use
> to find out if I already prepared a particular statement?
> 
> I looked and could not find one. If this method is not defined could it 
> please be considered?

I had been hoping to implement a general enumeration and lookup 
interface to a connection's prepared statements, but haven't had time. 
But yes, if you need this, it can be added.

The only difficulty is the name: isPrepared (or is_prepared as it would 
come out in a more standard-library-ish style) could mean both of "have 
I defined this prepared statement yet?" and "has this statement been 
prepared on the backend yet?"  I understand you need the former, and the 
name should reflect that as clearly as possible.


Jeroen


More information about the Libpqxx-general mailing list