Results of 1 - 2 of about 2 for QueryResult (0.001 sec.)
- C++ API 11228
- Installation To use the DuckDB C++ API, download the libduckdb archive for your platform. The latest stable version of the DuckDB C++ API is 2.0.0. Warning DuckDB's C++ API is internal. It is not guaranteed to be stable and can change witho
...s built around the abstractions of a database instance ( DuckDB class), multiple Connection s to the database instance and QueryResult instances as the result of queries. The header file for the C++ API is duckdb.hpp . Startup & Shutdown To use DuckDB, you...xpose the Query() method to send a SQL query string to DuckDB from C++. Query() runs the query to completion and returns a QueryResult that retains the result in memory, so it can be read repeatedly. To submit a query without blocking, use Submit() . // cre...xceptions under normal circumstances. Instead, invalid queries or other issues cause the HasError() method of the returned QueryResult to return true . In this case, the error message is available via GetError() . The methods GetErrorType() and GetErrorObje... - https://man.mtool.work/duckdb/2.0/clients/cpp.html
- Catch C/C++ Tests 7485
- While we prefer the sqllogic tests for testing most functionality, for certain tests only SQL is not sufficient. This typically happens when you want to test the C++ API. When using pure SQL is really not an option it might be necessary to
...hpp" #include "test_helpers.hpp" TEST_CASE("Test simple storage", "[storage]") { auto config = GetTestConfig(); unique_ptr<QueryResult> result; auto storage_database = TestCreatePath("storage_test"); // make sure the database does not exist DeleteDatabase(s... - https://man.mtool.work/duckdb/2.0/dev/sqllogictest/catch.html
PREV
1
NEXT
DuckDB 2.0 Documentation / man.mtool.work