#include <BMysql.h>
Public Member Functions | |
| BMysql () | |
| ~BMysql () | |
| BError | open (BString hostName, BString dataBase, BString userName, BString password) |
| 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. | |
| BError | flush () |
| Flush all data to disk. | |
| BString | escapeString (BString str) |
| Escapes special characters in the string. | |
| BError | query (BString cmd, BList< BDictString > &result) |
| MYSQL & | db () |
| void | setDebug (int debug) |
Private Attributes | |
| MYSQL | odb |
| int | oopened |
| int | odebug |
| BMutex | olock |
| BMysql::BMysql | ( | ) |
| BMysql::~BMysql | ( | ) |
| MYSQL & BMysql::db | ( | ) |
| BError BMysql::flush | ( | ) |
Flush all data to disk.
| BError BMysql::get | ( | BString | table, | |
| BString | where, | |||
| BDictString & | fields | |||
| ) |
| BError BMysql::insert | ( | BString | table, | |
| BDictString | fields, | |||
| BUInt32 * | id = 0 | |||
| ) |
| BError BMysql::query | ( | BString | cmd, | |
| BList< BDictString > & | result | |||
| ) |
| void BMysql::setDebug | ( | int | debug | ) |
| BError BMysql::update | ( | BString | table, | |
| BUInt32 | id, | |||
| BDictString | fields | |||
| ) |
MYSQL BMysql::odb [private] |
int BMysql::odebug [private] |
BMutex BMysql::olock [private] |
int BMysql::oopened [private] |
1.4.7