MySQL wrappedMySQL wrapped is a very small collection of classes that hides the MySQL C API. | |
Download |
MySQL wrapped Ranking & Summary
Advertisement
- License:
- GPL
- Price:
- FREE
- Publisher Name:
- Anders Hedstr
- Publisher web site:
- http://www.alhem.net/project/wsdl2cpp/
MySQL wrapped Tags
MySQL wrapped Description
MySQL wrapped is a very small collection of classes that hides the MySQL C API. 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 Related Software