MCPcopy Create free account
hub / github.com/duckdb/duckdb / ExecuteQuery

Method ExecuteQuery

tools/shell/shell.cpp:1150–1158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1148}
1149
1150SuccessState ShellState::ExecuteQuery(const string &query) {
1151 auto &con = *conn;
1152 auto res = con.Query(query);
1153 if (res->HasError()) {
1154 PrintF(PrintOutput::STDERR, "Failed to execute query \"%s\": %s\n", query.c_str(), res->GetError().c_str());
1155 return SuccessState::FAILURE;
1156 }
1157 return SuccessState::SUCCESS;
1158}
1159
1160unique_ptr<duckdb::ProgressBarDisplay> CreateProgressBar() {
1161 return make_uniq<ShellProgressBarDisplay>();

Callers 1

EnableSafeModeMethod · 0.45

Calls 4

c_strMethod · 0.80
QueryMethod · 0.45
HasErrorMethod · 0.45
GetErrorMethod · 0.45

Tested by

no test coverage detected