pandemonium_engine/modules/database/database.h

34 lines
558 B
C++
Raw Normal View History

#ifndef DATABASE_H
#define DATABASE_H
2022-07-05 23:30:14 +02:00
#include "core/ustring.h"
#include "core/reference.h"
class QueryBuilder;
class TableBuilder;
class QueryResult;
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;
};
2022-07-05 23:30:14 +02:00
#endif