|
My Project
|
Public Member Functions | |
| bool | IsValid () |
| whether db is opened. More... | |
| void | Cleanup () |
| delete the database and set everything to NULL | |
| DBEntity * | GetDBEntity () |
| get the database object associated with this provider | |
| void | SetDBEntity (const string &sConnectionstring) |
| replace the current database with current one. More... | |
| void | ValidateDatabase () |
| ensure that the database has been set up properly. More... | |
| bool | InsertPuzzleRecordFromString (const string &strRecord) |
| Insert the new puzzle record to Puzzle_DB. More... | |
| bool | DeletePuzzleRecordByID (int ID) |
| delete the existing puzzle record from Puzzle_DB More... | |
| bool | InsertItemRecordFromString (const string &strRecord) |
| Insert the new item record to Item_DB. More... | |
| bool | DeleteItemRecordByID (int ID) |
| delete the existing item record from Item_DB More... | |
| bool | UpdateItemRecordFromString (const string &strRecord) |
| Update existing item record of Item_DB. More... | |
| const char * | SelectItemRecordToString (__int64 ID) |
| Select existing item record of Item_DB. More... | |
| bool | InsertCharacterRecordFromString (const string &strRecord) |
| Insert the new character record to Character_DB. More... | |
| bool | DeleteCharacterRecordByID (int ID) |
| delete the existing puzzle record from Character_DB More... | |
| bool | InsertChestRecordFromString (const string &strRecord) |
| Insert the new chest record to Chest_DB. More... | |
| bool | DeleteChestRecordByID (int ID) |
| delete the existing chest record from Chest_DB More... | |
| bool | InsertFruitRecordFromString (const string &strRecord) |
| Insert the new fruit record to Fruit_DB. More... | |
| bool | DeleteFruitRecordByID (int ID) |
| delete the existing fruit record from Fruit_DB More... | |
| bool | InsertPetAIRecordFromString (const string &strRecord) |
| Insert the new petAI record to PetAI_DB. More... | |
| bool | DeletePetAIRecordByID (int ID) |
| delete the existing petAI record from PetAI_DB More... | |
| bool | InsertPetRecordFromString (const string &strRecord) |
| Insert the new pet record to Pet_DB. More... | |
| bool | DeletePetRecordByID (int ID) |
| delete the existing pet record from Pet_DB More... | |
| bool | InsertQuestRecordFromString (const string &strRecord) |
| Insert the new quest record to Quest_DB. More... | |
| bool | DeleteQuestRecordByID (int ID) |
| delete the existing quest record from Quest_DB More... | |
| bool | InsertTitleRecordFromString (const string &strRecord) |
| Insert the new title record to Title_DB. More... | |
| bool | DeleteTitleRecordByID (int ID) |
| delete the existing title record from Title_DB More... | |
Static Public Member Functions | |
| static string | GetStringbyID (int ID) |
| Get string from ID. More... | |
| static int | InsertString (const char *strEN, const char *strCN) |
| Insert the new string table entry to StringTable_DB. More... | |
| bool CKidsDBProvider::DeleteCharacterRecordByID | ( | int | ID | ) |
delete the existing puzzle record from Character_DB
| ID | ID of target record |
| bool CKidsDBProvider::DeleteChestRecordByID | ( | int | ID | ) |
delete the existing chest record from Chest_DB
| ID | ID of target record |
| bool CKidsDBProvider::DeleteFruitRecordByID | ( | int | ID | ) |
delete the existing fruit record from Fruit_DB
| ID | ID of target record |
| bool CKidsDBProvider::DeleteItemRecordByID | ( | int | ID | ) |
delete the existing item record from Item_DB
| ID | ID of target record |
| bool CKidsDBProvider::DeletePetAIRecordByID | ( | int | ID | ) |
delete the existing petAI record from PetAI_DB
| ID | ID of target record |
| bool CKidsDBProvider::DeletePetRecordByID | ( | int | ID | ) |
delete the existing pet record from Pet_DB
| ID | ID of target record |
| bool CKidsDBProvider::DeletePuzzleRecordByID | ( | int | ID | ) |
delete the existing puzzle record from Puzzle_DB
| ID | ID of target record |
| bool CKidsDBProvider::DeleteQuestRecordByID | ( | int | ID | ) |
delete the existing quest record from Quest_DB
| ID | ID of target record |
| bool CKidsDBProvider::DeleteTitleRecordByID | ( | int | ID | ) |
delete the existing title record from Title_DB
| ID | ID of target record |
|
static |
Get string from ID.
| ID | ID in kids db's string table. |
| bool CKidsDBProvider::InsertCharacterRecordFromString | ( | const string & | strRecord | ) |
Insert the new character record to Character_DB.
| record | ID of record will be ignored and filled with actual ID if inserted successfully |
| bool CKidsDBProvider::InsertChestRecordFromString | ( | const string & | strRecord | ) |
Insert the new chest record to Chest_DB.
| record | ID of record will be ignored and filled with actual ID if inserted successfully |
| bool CKidsDBProvider::InsertFruitRecordFromString | ( | const string & | strRecord | ) |
Insert the new fruit record to Fruit_DB.
| record | ID of record will be ignored and filled with actual ID if inserted successfully |
| bool CKidsDBProvider::InsertItemRecordFromString | ( | const string & | strRecord | ) |
Insert the new item record to Item_DB.
| record | ID of record will be ignored and filled with actual ID if inserted successfully |
| bool CKidsDBProvider::InsertPetAIRecordFromString | ( | const string & | strRecord | ) |
Insert the new petAI record to PetAI_DB.
| record | ID of record will be ignored and filled with actual ID if inserted successfully |
| bool CKidsDBProvider::InsertPetRecordFromString | ( | const string & | strRecord | ) |
Insert the new pet record to Pet_DB.
| record | ID of record will be ignored and filled with actual ID if inserted successfully |
| bool CKidsDBProvider::InsertPuzzleRecordFromString | ( | const string & | strRecord | ) |
Insert the new puzzle record to Puzzle_DB.
| record | ID of record will be ignored and filled with actual ID if inserted successfully |
| bool CKidsDBProvider::InsertQuestRecordFromString | ( | const string & | strRecord | ) |
Insert the new quest record to Quest_DB.
| record | ID of record will be ignored and filled with actual ID if inserted successfully |
|
static |
Insert the new string table entry to StringTable_DB.
| str | Entry in the current game language |
| bool CKidsDBProvider::InsertTitleRecordFromString | ( | const string & | strRecord | ) |
Insert the new title record to Title_DB.
| record | ID of record will be ignored and filled with actual ID if inserted successfully |
|
inline |
whether db is opened.
| const char * CKidsDBProvider::SelectItemRecordToString | ( | __int64 | ID | ) |
Select existing item record of Item_DB.
| record | select record by ID |
| void CKidsDBProvider::SetDBEntity | ( | const string & | sConnectionstring | ) |
replace the current database with current one.
the old one is closed and the new once will be opened.
| sConnectionstring | the file path |
| bool CKidsDBProvider::UpdateItemRecordFromString | ( | const string & | strRecord | ) |
Update existing item record of Item_DB.
| strRecord | update record with actual ID |
|
inline |
ensure that the database has been set up properly.
If not, ResetDatabase() is called to reset the database to blank
1.8.12