欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/Agda, C++/Erlang/Lisp
RudeServer
来自开放百科 - 灰狐
(版本间的差异)
第38行: | 第38行: | ||
return 0; | return 0; | ||
} | } | ||
− | g++ testmysql.cpp /usr/lib/rudedatabase.lib /usr/lib/libmysqlclient.so | + | g++ -o testmysql testmysql.cpp /usr/lib/rudedatabase.lib /usr/lib/libmysqlclient.so |
debian:/var/www/cgi-bin# ./testmysql | debian:/var/www/cgi-bin# ./testmysql | ||
Successful | Successful |
2007年2月8日 (四) 17:55的版本
RudeServer: Professional C++ CGI Development Libraries
Libraries
- C++ CGI Parser Library
- C++ Config File Library
- C++ Socket Library
- C++ Database Library
- C++ Session Library
- Sentry RBAC Library
- Wordlet Library
Examples
#include <rude/database.h> #include <iostream>
using namespace std; using namespace rude;
void doStuff(void) { Database *database = Database::instance("mycontext"); if(database->executeQuery("select * from test")) { cout << "Successful\n" } else { cout << database->getError() << "\n"; } } int main(void) { Database::addContext("mycontext","test","root","huihoo","localhost",3306); doStuff(); Database::finish(); return 0; } g++ -o testmysql testmysql.cpp /usr/lib/rudedatabase.lib /usr/lib/libmysqlclient.so debian:/var/www/cgi-bin# ./testmysql Successful
分享您的观点