|
Lightweight 0.20260303.0
|
#include <SqlDate.hpp>
Public Member Functions | |
| constexpr | SqlDate () noexcept=default |
| Default constructor. | |
| constexpr | SqlDate (SqlDate &&) noexcept=default |
| Default move constructor. | |
| constexpr SqlDate & | operator= (SqlDate &&) noexcept=default |
| Default move assignment operator. | |
| constexpr | SqlDate (SqlDate const &) noexcept=default |
| Default copy constructor. | |
| constexpr SqlDate & | operator= (SqlDate const &) noexcept=default |
| Default copy assignment operator. | |
| LIGHTWEIGHT_FORCE_INLINE constexpr std::chrono::year_month_day | value () const noexcept |
| Returns the current date. | |
| LIGHTWEIGHT_FORCE_INLINE constexpr bool | operator== (SqlDate const &other) const noexcept |
| Equality comparison operator. | |
| LIGHTWEIGHT_FORCE_INLINE constexpr bool | operator!= (SqlDate const &other) const noexcept |
| Inequality comparison operator. | |
| constexpr | SqlDate (std::chrono::year_month_day value) noexcept |
| Constructs a date from individual std::chrono::year_month_day. | |
| constexpr | SqlDate (std::chrono::year year, std::chrono::month month, std::chrono::day day) noexcept |
| Constructs a date from individual components. | |
Static Public Member Functions | |
| static LIGHTWEIGHT_FORCE_INLINE SqlDate | Today () noexcept |
| Returns the current date. | |
| static LIGHTWEIGHT_FORCE_INLINE constexpr SQL_DATE_STRUCT | ConvertToSqlValue (std::chrono::year_month_day value) noexcept |
| Converts a std::chrono::year_month_day to the underlying SQL date structure. | |
| static LIGHTWEIGHT_FORCE_INLINE constexpr std::chrono::year_month_day | ConvertToNative (SQL_DATE_STRUCT const &value) noexcept |
| Converts a SQL date structure to std::chrono::year_month_day. | |
Public Attributes | |
| SQL_DATE_STRUCT | sqlValue {} |
| Holds the underlying SQL date structure. | |
Represents a date to efficiently write to or read from a database.
Definition at line 17 of file SqlDate.hpp.
|
inlineconstexprnoexcept |
Constructs a date from individual std::chrono::year_month_day.
Definition at line 54 of file SqlDate.hpp.
References ConvertToSqlValue(), and value().
|
inlineconstexprnoexcept |
Constructs a date from individual components.
Definition at line 60 of file SqlDate.hpp.
|
inlineconstexprnoexcept |
Returns the current date.
Definition at line 35 of file SqlDate.hpp.
References ConvertToNative(), and sqlValue.
Referenced by ConvertToNative(), ConvertToSqlValue(), and SqlDate().
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Inequality comparison operator.
Definition at line 48 of file SqlDate.hpp.
|
inlinestaticnoexcept |
Returns the current date.
Definition at line 66 of file SqlDate.hpp.
|
inlinestaticconstexprnoexcept |
Converts a std::chrono::year_month_day to the underlying SQL date structure.
Definition at line 74 of file SqlDate.hpp.
References value().
Referenced by SqlDate().
|
inlinestaticconstexprnoexcept |
Converts a SQL date structure to std::chrono::year_month_day.
Definition at line 84 of file SqlDate.hpp.
References value().
Referenced by value().
| SQL_DATE_STRUCT Lightweight::SqlDate::sqlValue {} |
Holds the underlying SQL date structure.
Definition at line 20 of file SqlDate.hpp.
Referenced by operator==(), and value().