| 1110 | } |
| 1111 | |
| 1112 | std::optional<bool> AsBool(const std::string& value) { |
| 1113 | if (boost::iequals(value, "true") || boost::iequals(value, "1")) { |
| 1114 | return true; |
| 1115 | } else if (boost::iequals(value, "false") || boost::iequals(value, "0")) { |
| 1116 | return false; |
| 1117 | } else { |
| 1118 | return std::nullopt; |
| 1119 | } |
| 1120 | } |
| 1121 | |
| 1122 | std::optional<bool> AsBool(const Connection::ConnPropertyMap& conn_property_map, |
| 1123 | std::string_view property_name) { |
no test coverage detected