[Libpqxx-general] isPrepared method
Jeroen Vermeulen
jtv at xs4all.nl
Fri Apr 3 16:18:38 UTC 2009
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.
Jeroen
More information about the Libpqxx-general
mailing list