-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdatabase.h
More file actions
executable file
·51 lines (43 loc) · 1.31 KB
/
database.h
File metadata and controls
executable file
·51 lines (43 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* ===================================================================
*
* Filename: database.h
*
* Description: Declaring MySQL class for using database.
*
* Created: Friday 22 February 2013 12:48:40 IST
* Compiler: gcc
*
* Author: Mandeep Kaur, meghasimak@gmail.com
* License: GNU General Public License
* Copyright: Copyright (c) 2013, Great Developers
*
* ===================================================================
*/
/**-------------------------------------------------------------------
* Include database-detail.h and other files
*------------------------------------------------------------------*/
#include "header.h"
#include "database-detail.h"
/**
* ===================================================================
* Class: MySQL
* Description: MySQL class for database accessability
* ===================================================================
*/
class MySQL
{
protected:
/** MySQL connectivity Variables */
MYSQL *connect;
MYSQL_RES *res_set;
MYSQL_ROW row;
unsigned int i;
public:
/** MySQL Constructor */
MySQL();
/** Function to show tables in database */
void ShowTables();
/** MySQL Destructor */
~MySQL();
};