mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-29 15:17:11 +01:00
31 lines
557 B
C++
31 lines
557 B
C++
#ifndef DATABASE_SINGLE_THREADED_H
|
|
#define DATABASE_SINGLE_THREADED_H
|
|
|
|
#include "core/string/ustring.h"
|
|
|
|
#include "database.h"
|
|
|
|
class QueryBuilder;
|
|
class TableBuilder;
|
|
class QueryResult;
|
|
class DatabaseConnection;
|
|
|
|
class DatabaseSingleThreaded : public Database {
|
|
GDCLASS(DatabaseSingleThreaded, Database);
|
|
|
|
public:
|
|
Ref<DatabaseConnection> get_connection();
|
|
|
|
DatabaseSingleThreaded();
|
|
~DatabaseSingleThreaded();
|
|
|
|
protected:
|
|
Ref<DatabaseConnection> _allocate_connection();
|
|
|
|
static void _bind_methods();
|
|
|
|
Ref<DatabaseConnection> _connection;
|
|
};
|
|
|
|
#endif
|