mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-19 18:36:54 +01:00
30 lines
582 B
C++
30 lines
582 B
C++
#ifndef DATABASE_H
|
|
#define DATABASE_H
|
|
|
|
#include "core/ustring.h"
|
|
#include <memory>
|
|
|
|
#include "core/reference.h"
|
|
|
|
class QueryBuilder;
|
|
class TableBuilder;
|
|
class QueryResult;
|
|
|
|
class Database {
|
|
public:
|
|
virtual void connect(const String &connection_str);
|
|
virtual Ref<QueryResult> query(const String &query);
|
|
virtual void query_run(const String &query);
|
|
|
|
virtual Ref<QueryBuilder> get_query_builder();
|
|
virtual Ref<TableBuilder> get_table_builder();
|
|
|
|
virtual String escape(const String str);
|
|
virtual void escape(const String str, String *to);
|
|
|
|
Database();
|
|
~Database();
|
|
};
|
|
|
|
#endif
|