|
Beamlib 3.1.2
This is the Beam C++ class library.
|
A class to provide access to a MySQL database. More...
#include <BMysql.h>
Public Member Functions | |
| BMysql () | |
| ~BMysql () | |
| BError | open (BString hostName, BString dataBase, BString userName, BString password) |
| void | close () |
| BError | get (BString table, BString where, BDictString &fields) |
| BError | insert (BString table, BDictString fields, BUInt32 *id=0) |
| BError | update (BString table, BUInt32 id, BDictString fields) |
| BError | del (BString table, BUInt32 id) |
| Delete record from table. More... | |
| BError | flush () |
| Flush all data to disk. More... | |
| BString | escapeString (BString str) |
| Escapes special characters in the string. More... | |
| BError | query (BString cmd, BList< BDictString > &result) |
| MYSQL & | db () |
| void | setDebug (int debug) |
A class to provide access to a MySQL database.
| BMysql::BMysql | ( | ) |
| BMysql::~BMysql | ( | ) |
| void BMysql::close | ( | ) |
| BError BMysql::get | ( | BString | table, |
| BString | where, | ||
| BDictString & | fields | ||
| ) |
| BError BMysql::insert | ( | BString | table, |
| BDictString | fields, | ||
| BUInt32 * | id = 0 |
||
| ) |
| BError BMysql::update | ( | BString | table, |
| BUInt32 | id, | ||
| BDictString | fields | ||
| ) |
| BError BMysql::flush | ( | ) |
Flush all data to disk.
| BError BMysql::query | ( | BString | cmd, |
| BList< BDictString > & | result | ||
| ) |
| MYSQL & BMysql::db | ( | ) |
| void BMysql::setDebug | ( | int | debug | ) |