#ifndef SQLITE3_DATABASE_CONNECTION_H #define SQLITE3_DATABASE_CONNECTION_H #include "../database/database_connection.h" #include "./sqlite/sqlite3.h" class QueryBuilder; class TableBuilder; class QueryResult; class Database; struct sqlite3; class SQLite3DatabaseConnection : public DatabaseConnection { public: friend class SQLite3PreparedStatement; Error database_connect(const String &connection_str); Ref query(const String &query); void query_run(const String &query); Ref get_query_builder(); Ref get_table_builder(); Ref create_prepared_statement(); String escape(const String &str); void escape_to(const String &str, String *to); SQLite3DatabaseConnection(); ~SQLite3DatabaseConnection(); protected: sqlite3 *conn; }; #endif