Last change
on this file since 3f5616f was e3535b3, checked in by dportnoy <dmp1488@…>, 12 years ago |
Initial commit for server
|
-
Property mode
set to
100644
|
File size:
335 bytes
|
Line | |
---|
1 | #include <string>
|
---|
2 |
|
---|
3 | #include <mysql/mysql.h>
|
---|
4 |
|
---|
5 | using namespace std;
|
---|
6 |
|
---|
7 | class Database
|
---|
8 | {
|
---|
9 | private:
|
---|
10 | MYSQL mysql, *conn;
|
---|
11 |
|
---|
12 | public:
|
---|
13 | Database(string host, string username, string password, string database);
|
---|
14 | ~Database();
|
---|
15 |
|
---|
16 | void createUser(string username, string password);
|
---|
17 |
|
---|
18 | string getPassword(string username);
|
---|
19 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.