MySQL wrapped 1.6 review

Download
by rbytes.net on

License: GPL (GNU General Public License)
File size: 16K
Developer: Anders Hedstr?m
0 stars award from rbytes.net

MySQL wrapped is a C++ wrapper for the MySQL database C application programming interface.

Examples:

The following example should be linked with the mysqlclient library from the MySQL distribution / build.

#include
#include
#include
#include

#include "Database.h"
#include "Query.h"

int main()
{
Database db("localhost","dbuser","","testdb");
Query q(db);

q.execute("delete from user");
q.execute("insert into user values(1,'First Person')");
q.execute("insert into user values(2,'Another Person')");

q.get_result("select num,name from user");
while (q.fetch_row())
{
long num = q.getval();
std::string name = q.getstr();

printf("User#%ld: %sn", num, name.c_str() );
}
q.free_result();
}

What's New in This Release:
This release adds methods to access fields by name.

MySQL wrapped 1.6 keywords