1 | #include "duckdb.hpp" |
2 | #include "sqlite3.h" |
3 | |
4 | namespace sqlite { |
5 | |
6 | //! Transfer all data inside the DuckDB connection to the given sqlite database |
7 | bool TransferDatabase(duckdb::Connection &con, sqlite3 *sqlite); |
8 | |
9 | //! Fires a query to a SQLite database, returning a QueryResult object. Interrupt should be initially set to 0. If |
10 | //! interrupt becomes 1 at any point query execution is cancelled. |
11 | duckdb::unique_ptr<duckdb::QueryResult> QueryDatabase(duckdb::vector<duckdb::SQLType> result_types, sqlite3 *sqlite, |
12 | std::string query, volatile int &interrupt); |
13 | |
14 | }; // namespace sqlite |
15 | |