| 56 | } |
| 57 | |
| 58 | void castStringToBool(const char* input, uint64_t len, bool& result) { |
| 59 | if (!tryCastToBool(input, len, result)) { |
| 60 | throw ConversionException{ |
| 61 | std::format("Value {} is not a valid boolean", std::string{input, (size_t)len})}; |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | template<> |
| 66 | bool TryCastStringToTimestamp::tryCast<timestamp_ns_t>(const char* input, uint64_t len, |
no test coverage detected