[Libpqxx-general] isPrepared method

Maurice Gittens mainmanmauricio at gmail.com
Fri Apr 3 17:15:15 UTC 2009


On Fri, Apr 3, 2009 at 6:18 PM, Jeroen Vermeulen <jtv at xs4all.nl> wrote:

> Jeroen Vermeulen wrote:
>
>  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.
>>
>
> Found it: connection.prepared("my_statement").exists()
>
> That returns whether the statement actually exists or not.  It's in trunk
> now.
>


Thanks!

Kind regards,
Maurice



>
>
> Jeroen
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pgfoundry.org/pipermail/libpqxx-general/attachments/20090403/fe3fbe1e/attachment.html 


More information about the Libpqxx-general mailing list