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

Function ToggleBail

tools/shell/shell_metadata_command.cpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace duckdb_shell {
13
14MetadataResult ToggleBail(ShellState &state, const vector<string> &args) {
15 if (args[1] == "auto") {
16 state.bail = BailOnError::AUTOMATIC;
17 } else if (state.StringToBool(args[1])) {
18 state.bail = BailOnError::BAIL_ON_ERROR;
19 } else {
20 state.bail = BailOnError::DONT_BAIL_ON_ERROR;
21 }
22 return MetadataResult::SUCCESS;
23}
24
25MetadataResult ToggleBinary(ShellState &state, const vector<string> &args) {
26 if (state.StringToBool(args[1])) {

Callers

nothing calls this directly

Calls 1

StringToBoolMethod · 0.80

Tested by

no test coverage detected