#ifndef DATABASE_H #define DATABASE_H #include "core/ustring.h" #include "core/reference.h" class QueryBuilder; class TableBuilder; class QueryResult; class Database : public Reference { GDCLASS(Database, Reference); public: virtual void connect(const String &connection_str); virtual Ref query(const String &query); virtual void query_run(const String &query); virtual Ref get_query_builder(); virtual Ref get_table_builder(); virtual String escape(const String &str); virtual void escape_to(const String &str, String *to); Database(); ~Database(); protected: static void _bind_methods(); }; #endif