Lightweight 0.20261105.1
Loading...
Searching...
No Matches
Lightweight::SqlDateStorage Struct Reference

#include <SqlValueStorage.hpp>

Public Attributes

std::int16_t year
 Year, may be negative.
 
std::uint16_t month
 Month of the year, 1-12.
 
std::uint16_t day
 Day of the month, 1-31.
 

Detailed Description

Lightweight-owned storage of a SQL DATE value.

Layout-identical to ODBC's SQL_DATE_STRUCT, so an ODBC driver can bind it in place without a copy.

Definition at line 15 of file SqlValueStorage.hpp.

Member Data Documentation

◆ year

std::int16_t Lightweight::SqlDateStorage::year

Year, may be negative.

Definition at line 18 of file SqlValueStorage.hpp.

Referenced by Lightweight::SqlDate::ConvertToSqlValue(), and Lightweight::SqlDate::operator==().

◆ month

std::uint16_t Lightweight::SqlDateStorage::month

Month of the year, 1-12.

Definition at line 20 of file SqlValueStorage.hpp.

Referenced by Lightweight::SqlDate::operator==().

◆ day

std::uint16_t Lightweight::SqlDateStorage::day

Day of the month, 1-31.

Definition at line 22 of file SqlValueStorage.hpp.

Referenced by Lightweight::SqlDate::operator==().


The documentation for this struct was generated from the following file: