| 12 | namespace duckdb_shell { |
| 13 | |
| 14 | MetadataResult 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 | |
| 25 | MetadataResult ToggleBinary(ShellState &state, const vector<string> &args) { |
| 26 | if (state.StringToBool(args[1])) { |
nothing calls this directly
no test coverage detected