mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-27 14:17:37 +01:00
31 lines
513 B
C++
31 lines
513 B
C++
#ifndef DATABASE_H
|
|
#define DATABASE_H
|
|
|
|
#include "core/string/ustring.h"
|
|
|
|
#include "core/object/reference.h"
|
|
|
|
class DatabaseConnection;
|
|
|
|
class Database : public Reference {
|
|
GDCLASS(Database, Reference);
|
|
|
|
public:
|
|
String get_connection_string();
|
|
void set_connection_string(const String &val);
|
|
|
|
virtual Ref<DatabaseConnection> get_connection();
|
|
|
|
Database();
|
|
~Database();
|
|
|
|
protected:
|
|
virtual Ref<DatabaseConnection> _allocate_connection();
|
|
|
|
static void _bind_methods();
|
|
|
|
String _connection_string;
|
|
};
|
|
|
|
#endif
|