mirror of https://github.com/GOSTSec/poolserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
561 B
33 lines
561 B
#ifndef DATABASE_H_ |
|
#define DATABASE_H_ |
|
|
|
class Database; |
|
class ResultSet; |
|
class Fields; |
|
class PreparedStatement; |
|
|
|
enum PreparedStatementEnum |
|
{ |
|
STMT_INSERT_SHARE = 1, |
|
}; |
|
|
|
class Database |
|
{ |
|
public: |
|
|
|
// Ping! |
|
virtual Ping(); |
|
|
|
// Queries |
|
virtual void Execute(const char* query); |
|
virtual void Execute(PreparedStatement* stmt); |
|
virtual ResultSet* Query(const char* query); |
|
virtual ResultSet* Query(PreparedStatement* stmt); |
|
|
|
// Prepared Statements |
|
virtual PreparedStatement* GetPreparedStatement(PreparedStatementEnum smtid); |
|
|
|
|
|
}; |
|
|
|
#endif
|
|
|