#include <database.hpp>

Public Types | |
| enum | Engine { MySQL, SQLite } |
Public Member Functions | |
| Database () | |
| Constructs a zombie Database object that should have Connect() called on it before anything else. | |
| Database (Database::Engine type, std::string host, std::string user, std::string pass, std::string db) | |
| Opens a connection to a database. | |
| void | Connect (Database::Engine type, std::string host, std::string user, std::string pass, std::string db) |
| Opens a connection to a database. | |
| Database_Result | Query (const char *format,...) |
| Executes a query and returns it's result. | |
Public Attributes | |
| Database_Result | callbackdata |
| Object used to collect information from an external callback. | |
Protected Attributes | |
| union { | |
| }; | |
| bool | connected |
| Engine | engine |
| enum Database::Engine |
| Database::Database | ( | ) |
| Database::Database | ( | Database::Engine | type, | |
| std::string | host, | |||
| std::string | user, | |||
| std::string | pass, | |||
| std::string | db | |||
| ) |
| void Database::Connect | ( | Database::Engine | type, | |
| std::string | host, | |||
| std::string | user, | |||
| std::string | pass, | |||
| std::string | db | |||
| ) |
| Database_Result Database::Query | ( | const char * | format, | |
| ... | ||||
| ) |
union { ... } [protected] |
bool Database::connected [protected] |
Engine Database::engine [protected] |
Object used to collect information from an external callback.
1.5.7.1