Insanely Great wrote:

>Is it necessary that you usee STL. Other wise MySQL C API are much more
>easy to maintain and program. Even SQLyog which I am a beta tester is
>written using MySQL C API and its very fast.
>  
>
But it would be so nice to write:

MySQLConn DB = new MySQLConn ('host', 'port');
DB.Login('user', 'pass');
MySQLTransaction X = new MySQLQuery(DB);

// STL-derived slist:
MySQLResults Results = X.Query("...");

// STL map:
map Row;
while (Results.NextRow(Row)) {
    cout << "ID: " << Row["ID"] << ", Value: " << Row["Value"] << endl;
}

... PS, anyone seen such an API? :)

-- 
Michael T. Babcock
C.T.O., FibreSpeed Ltd.
http://www.fibrespeed.net/~mbabcock



---------------------------------------------------------------------
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