Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
orbit::database::detail Namespace Reference

Functions

template<typename T >
std::optional< T > 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).
 

Function Documentation

◆ convert()

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).