Questions tagged [mysqlpp]

MySQL++ is a C++ wrapper for MySQL’s C API.

MySQL++ is a C++ wrapper for MySQL’s C API. It is built around the same principles as the Standard C++ Library, to make dealing with the database as easy as dealing with STL containers. In addition, MySQL++ provides facilities that let you avoid the most repetitive sorts of SQL within your own code, providing native C++ interfaces for these common tasks.

http://tangentsoft.net/mysql++/

17 questions
0
votes
1 answer

Is it safe to convert a mysqlpp::sql_blob to a std::string?

I'm grabbing some binary data out of my MySQL database. It comes out as a mysqlpp::sql_blob type. It just so happens that this BLOB is a serialized Google Protobuf. I need to de-serialize it so that I can access it normally. This gives a compile…
Runcible
  • 7,006
  • 12
  • 42
  • 62
0
votes
3 answers

Private inheritance of std::ostream and using operator<<

Problem: #include #include class MyClass : private std::ostream { public : MyClass() : std::ostream(&mBuffer) { } using std::operator<<; private: std::stringbuf mBuffer; }; // In main function, for…
Zero
  • 11,593
  • 9
  • 52
  • 70
1
2