2022-07-06 10:11:17 +02:00
|
|
|
#ifndef DATABASE_SINGLE_THREADED_H
|
|
|
|
#define DATABASE_SINGLE_THREADED_H
|
|
|
|
|
2022-08-17 14:19:55 +02:00
|
|
|
#include "core/string/ustring.h"
|
2022-07-06 10:11:17 +02:00
|
|
|
|
|
|
|
#include "database.h"
|
|
|
|
|
|
|
|
class QueryBuilder;
|
|
|
|
class TableBuilder;
|
|
|
|
class QueryResult;
|
|
|
|
class DatabaseConnection;
|
|
|
|
|
|
|
|
class DatabaseSingleThreaded : public Database {
|
|
|
|
GDCLASS(DatabaseSingleThreaded, Database);
|
|
|
|
|
|
|
|
public:
|
|
|
|
String get_connection_string();
|
|
|
|
void set_connection_string(const String &val);
|
|
|
|
|
|
|
|
Ref<DatabaseConnection> get_connection();
|
|
|
|
|
|
|
|
DatabaseSingleThreaded();
|
|
|
|
~DatabaseSingleThreaded();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
Ref<DatabaseConnection> _allocate_connection();
|
|
|
|
|
|
|
|
static void _bind_methods();
|
|
|
|
|
|
|
|
Ref<DatabaseConnection> _connection;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|