Skip to content

Commit

Permalink
Update Database.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lgneri authored Dec 5, 2023
1 parent 9b90b09 commit e27f9df
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Database.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/** Arquivo Database.h. Trabalho final EEL670 2022.2
* Aluno: Luis Guilherme Neri Ferreira */

#ifndef DATABASE_H
#define DATABASE_H

Expand All @@ -16,17 +19,20 @@ class Database
const char* password = "senhaPublica";
const char* database = "neriBank";
const float interest = 1.02;
MYSQL_RES* performQuery(MYSQL*, const char*);
void modify(MYSQL*, int, const char*, float);
public:
MYSQL* connect();
MYSQL_RES* performQuery(MYSQL*, const char*);
Database();
void addClient(MYSQL*, Client);
bool clientExists(MYSQL*, int);
bool correctPassword(MYSQL*, int, const char*);
map<string, char*> getClientInfo(MYSQL*, int);
void modify(MYSQL*, int, const char*, float);
void cashTransaction(MYSQL*, int, float);
void pix(MYSQL*, int, int, float);
void loan(MYSQL*, int, float);
void payLoan(MYSQL*, int);
void simulateMonth(MYSQL*);
};

#endif

0 comments on commit e27f9df

Please sign in to comment.