#include <orbit/legacy_namespaces.hpp>
#include <string>
#include <vector>
#include <unordered_map>
#include <optional>
#include <memory>
#include <stdexcept>
#include <charconv>
#include <limits>
#include <locale>
#include <sstream>
#include <type_traits>
#include <orbit/http/json.hpp>
Go to the source code of this file.
|
| template<typename T > |
| std::optional< T > | orbit::database::detail::convert (const std::string &text) |
| | Converts a column's text to T: bool, an integer, a floating-point type or std::string. The whole text must convert; "12abc" is not 12. Booleans accept t/f, true/false, 1/0 (PostgreSQL and MySQL spellings).
|
| |