should be it
This commit is contained in:
14
external/duckdb/examples/embedded-c++/main.cpp
vendored
Normal file
14
external/duckdb/examples/embedded-c++/main.cpp
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "duckdb.hpp"
|
||||
|
||||
using namespace duckdb;
|
||||
|
||||
int main() {
|
||||
DuckDB db(nullptr);
|
||||
|
||||
Connection con(db);
|
||||
|
||||
con.Query("CREATE TABLE integers(i INTEGER)");
|
||||
con.Query("INSERT INTO integers VALUES (3)");
|
||||
auto result = con.Query("SELECT * FROM integers");
|
||||
result->Print();
|
||||
}
|
||||
Reference in New Issue
Block a user