All,

I created a C++ class containing a variety of member variables of varying
types such as float, int, char *, etc.  If I instantiate an object of this
class, how should I insert this object into my database table?  I can
retrieve the individual members and insert them that way, but I feel it
would be more efficient to insert the object as a BLOB, but I don't exactly
know how to do that.  Basically, I want to insert the object as is so that I
can retrieve it as is and not have to bother with calling the member setting
functions to populate the class members.  I looked at the MySQL++ example
for loading a binary file, but am unsure how to apply that to my needs.  I
also looked through the mail archives and was unsuccessful in finding a
solution, so any assistance would be much appreciated.  Thanks in advance.

Regards,

Thi

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to