source: network-game/server/database.h@ 94ebbd9

Last change on this file since 94ebbd9 was e3535b3, checked in by dportnoy <dmp1488@…>, 12 years ago

Initial commit for server

  • Property mode set to 100644
File size: 335 bytes
RevLine 
[e3535b3]1#include <string>
2
3#include <mysql/mysql.h>
4
5using namespace std;
6
7class Database
8{
9private:
10 MYSQL mysql, *conn;
11
12public:
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.