Replies: 3 comments 8 replies
-
|
For just querying a single value, nothing is going to beat (Don't use streaming for a single value — there's a bit of extra startup cost that makes streaming slightly slower for small results. Unless the value is very large, maybe, but I haven't tested that.) There's also It's really quite an extensive API because it all depends on your needs and preferences. Some people prefer callbacks, and libpqxx can actually figure out the type of the value you want at compile time, and then at run time do the conversion from SQL text to that type. |
Beta Was this translation helpful? Give feedback.
-
|
@jtv I'm a bit of a purist as far as strongly typed languages go ( and anything else when I think about it ) you have var in DotNet and auto in C++ I don't like using either of them - just sayin... 😊 |
Beta Was this translation helpful? Give feedback.
-
|
I think we're done here thanks @jtv |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What are the various methods available to return a single value from pg ? I know these ones where tx is a pqxx::work transaction
Are there any more ?
Kind regards
Pete Kane
Beta Was this translation helpful? Give feedback.
All reactions