List:General Discussion« Previous MessageNext Message »
From:Michael T. Babcock Date:October 16 2002 4:28pm
Subject:Re: about use Dev-cpp and C++
View as plain text  
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


Thread
about use Dev-cpp and C++wang tianyi14 Oct
  • Re: about use Dev-cpp and C++Insanely Great14 Oct
  • Re: about use Dev-cpp and C++Michael T. Babcock16 Oct
    • RE: about use Dev-cpp and C++Ed Carp16 Oct
      • RE: about use Dev-cpp and C++wang tianyi18 Oct
        • RE: about use Dev-cpp and C++Ed Carp18 Oct
          • RE: about use Dev-cpp and C++wang tianyi18 Oct
    • Re: about use Dev-cpp and C++wang tianyi18 Oct