| 1576 | } |
| 1577 | |
| 1578 | MetadataResult ShellState::EnableSafeMode(ShellState &state, const vector<string> &args) { |
| 1579 | state.safe_mode = true; |
| 1580 | if (state.db) { |
| 1581 | // db has been opened - disable external access |
| 1582 | state.ExecuteQuery("SET enable_external_access=false"); |
| 1583 | state.ExecuteQuery("SET lock_configuration=true"); |
| 1584 | } |
| 1585 | return MetadataResult::SUCCESS; |
| 1586 | } |
| 1587 | |
| 1588 | bool ShellState::SetOutputMode(const string &mode_name, const char *tbl_name) { |
| 1589 | auto mode_str = mode_name.c_str(); |
nothing calls this directly
no test coverage detected