58 bool m_IsLibraryStarted;
59 bool m_IsDatabaseOpened;
60 bool m_IsDatabaseConnected;
62 MYSQL_RES* m_MySQLRes;
65 wxString m_ErrMsgPath;
68 bool DBLibraryInit(
const wxString& datadir);
72 bool DBUseDataBase(
const wxString& dbname);
74 bool DBIsDataBaseReady();
76 bool DBGetNextRecord(MYSQL_ROW& record);
78 bool DBResultsNotNull();
82 DataBase(
const wxString& errmsgpath = wxEmptyString);
87 bool DataBaseCreateNew(
const wxString& datadir,
const wxString& name);
89 bool DataBaseOpen(
const wxString& datadir,
const wxString& name);
91 bool DataBaseDelete();
93 wxString DataBaseGetName();
95 wxString DataBaseGetPath();
97 wxString DataBaseGetSize(
int precision = 2,
const wxString& failmsg = _(
"Not available"));
99 static wxString DataBaseGetVersion();
101 wxString DataBaseGetLastError();
109 bool DataBaseQueryNoResults(
const wxString& query,
bool logerror =
true);
111 bool DataBaseQuery(
const wxString& query,
bool logerror =
true);
113 int DataBaseQueriesNumber(
const wxString& query);
115 long DataBaseGetLastInsertedID();
117 long DataBaseGetAffectedRows();
120 static bool DataBaseStringEscapeQuery(
const wxString& query, wxString& results);
123 bool DataBaseHasResults();
125 void DataBaseClearResults();
128 bool DataBaseGetResultSize(
unsigned int* pcols,
long* prows);
130 bool DataBaseGetNextResult(wxString& result);
132 bool DataBaseGetNextResult(wxArrayString& results);
134 bool DataBaseGetNextResult(
long& result);
136 bool DataBaseGetNextResult(wxArrayLong& results);
138 bool DataBaseGetNextResult(wxDouble& result);
140 bool DataBaseGetNextResult(wxArrayDouble& results);
142 bool DataBaseGetNextRowResult(MYSQL_ROW& row, tmArrayULong& lengths);
145 bool DataBaseGetResults(wxArrayString& results);
147 bool DataBaseGetResults(wxArrayLong& results);
149 bool DataBaseGetResults(wxArrayDouble& results);
bool DataBaseOpen(const wxString &datadir, const wxString &name)
Open a mysql / mariadb database This function performs the following work:
Definition database.cpp:218