#include <cMySQL.h>
Inheritance diagram for cMySQL:
Public Member Functions | |
cMySQL (void) | |
~cMySQL (void) | |
Bool | Connect (void) |
Return TRUE if success. | |
void | Close (void) |
Close SQL connection. | |
Int | ErrorNum (void) |
Return the error number for the most recently executed query. | |
list< string > | GetDatabaseList (void) |
Get databases list. | |
Bool | CreateDatabase (string sDbName) |
Create Database. | |
Bool | DeleteDatabase (string sDbName) |
Delete Database. | |
Bool | SelectDatabase (string sDbName) |
Select database. | |
void | CreateTables (void) |
Create all tables of a database. | |
list< list< string > > | GetFileList (void) |
Get a File List with their General information. | |
list< list< string > > | GetMovieList (void) |
Get a Movie List with their General information. | |
list< list< string > > | GetSoftwareList (void) |
Get a Software List with their General information. | |
list< list< string > > | GetMusicList (void) |
Get a Music List with their General information. | |
list< string > | GetFileRowResult (const string sMd4) |
Get a row data of FILE table. | |
list< string > | GetMovieRowResult (const string sMd4) |
Get a row data of MOVIE table. | |
list< string > | GetSoftwareRowResult (const string sMd4) |
Get a row data of SOFTWARE table. | |
list< string > | GetMusicRowResult (const string sMd4) |
Get a row data of MUSIC table. | |
Bool | InsertNewEntry2File (cFile *File) |
INSERT new entry into FILE tabel. | |
Bool | InsertNewEntry2Movie (cMovie *Movie) |
INSERT new entry into MOVIE table. | |
Bool | InsertNewEntry2Music (cMusic *Music) |
INSERT new entry into MUSIC table. | |
Bool | InsertNewEntry2Software (cSoftware *Software) |
INSERT new entry into SOFTWARE table. | |
Bool | IsMd4Found (const string sMd4) |
Is Md4 is found in FILE table. | |
const string | GetCategory (const string sMd4) |
Get category string from FILE table. | |
Bool | UpdateFile (cFile *pFile) |
UPDATE FILE table. | |
Bool | UpdateMovie (cMovie *pMovie) |
UPDATE MOVIE table. | |
Bool | UpdateSoftware (cSoftware *pSoftware) |
UPDATE SOFTWARE table. | |
Bool | UpdateMusic (cMusic *pMusic) |
UPDATE MUSIC table. | |
Bool | DeleteFromFile (const string sMd4) |
DELETE entry from FILE table. | |
Bool | DeleteFromMovie (const string sMd4) |
DELETE entry from MOVIE table. | |
Bool | DeleteFromSoftware (const string sMd4) |
DELETE entry from SOFTWARE table. | |
Bool | DeleteFromMusic (const string sMd4) |
DELETE entry from MUSIC table. | |
Private Member Functions | |
Bool | Init (void) |
Return TRUE if success. | |
Bool | Query (string sQuery) |
Note: You should not add a terminating semicolon in sQuery. | |
list< list< string > > | GetQueryTableResult (void) |
Note: Query() has to execute before this function. | |
list< string > | GetQueryRowResult (void) |
Get the result of the 1st row. Note: Query() has to execute before this function. | |
list< string > | GetQueryColResult (void) |
Get the result of the 1st col(field). Note: Query() has to execute before this function. | |
Bool | CompareList (const list< string > lFirst, const list< string > lSecond) |
Don't need to sort. It is already in order. | |
Bool | CompareTable (const string sTableName, list< string > lFixColNames) |
list< list< string > > | GetGeneralInfoListOf (string sSqlCategory) |
Private Attributes | |
MYSQL_RES * | SQLResult |
MYSQL_ROW | SQLRow |
cFileSqlString | FileSqlString |
cMovieSqlString | MovieSqlString |
cSoftwareSqlString | SoftwareSqlString |
cMusicSqlString | MusicSqlString |
Static Private Attributes | |
MYSQL | SQLConnection |
|
|
|
|
|
Close SQL connection.
Implements cSqlBaseIf. |
|
Don't need to sort. It is already in order.
|
|
|
|
Return TRUE if success.
Implements cSqlBaseIf. |
|
Create Database.
Implements cSqlBaseIf. |
|
Create all tables of a database.
Implements cSqlBaseIf. |
|
Delete Database.
Implements cSqlBaseIf. |
|
DELETE entry from FILE table.
Implements cSqlBaseIf. |
|
DELETE entry from MOVIE table.
Implements cSqlBaseIf. |
|
DELETE entry from MUSIC table.
Implements cSqlBaseIf. |
|
DELETE entry from SOFTWARE table.
Implements cSqlBaseIf. |
|
Return the error number for the most recently executed query.
Implements cSqlBaseIf. |
|
Get category string from FILE table.
Implements cSqlBaseIf. |
|
Get databases list.
Implements cSqlBaseIf. |
|
Get a File List with their General information.
Implements cSqlBaseIf. |
|
Get a row data of FILE table.
Implements cSqlBaseIf. |
|
|
|
Get a Movie List with their General information.
Implements cSqlBaseIf. |
|
Get a row data of MOVIE table.
Implements cSqlBaseIf. |
|
Get a Music List with their General information.
Implements cSqlBaseIf. |
|
Get a row data of MUSIC table.
Implements cSqlBaseIf. |
|
Get the result of the 1st col(field). Note: Query() has to execute before this function.
|
|
Get the result of the 1st row. Note: Query() has to execute before this function.
|
|
Note: Query() has to execute before this function.
|
|
Get a Software List with their General information.
Implements cSqlBaseIf. |
|
Get a row data of SOFTWARE table.
Implements cSqlBaseIf. |
|
Return TRUE if success.
|
|
INSERT new entry into FILE tabel.
Implements cSqlBaseIf. |
|
INSERT new entry into MOVIE table.
Implements cSqlBaseIf. |
|
INSERT new entry into MUSIC table.
Implements cSqlBaseIf. |
|
INSERT new entry into SOFTWARE table.
Implements cSqlBaseIf. |
|
Is Md4 is found in FILE table.
Implements cSqlBaseIf. |
|
Note: You should not add a terminating semicolon in sQuery.
|
|
Select database.
Implements cSqlBaseIf. |
|
UPDATE FILE table.
Implements cSqlBaseIf. |
|
UPDATE MOVIE table.
Implements cSqlBaseIf. |
|
UPDATE MUSIC table.
Implements cSqlBaseIf. |
|
UPDATE SOFTWARE table.
Implements cSqlBaseIf. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|