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

#include <SqlValueStorage.hpp>

Public Attributes

std::uint8_t precision
 Total number of decimal digits.
 
std::int8_t scale
 Number of digits after the decimal point.
 
std::uint8_t sign
 1 for positive, 0 for negative.
 
std::uint8_t val [16]
 Little-endian unscaled magnitude.
 

Detailed Description

Lightweight-owned storage of a SQL NUMERIC / DECIMAL value.

Layout-identical to ODBC's SQL_NUMERIC_STRUCT.

Definition at line 74 of file SqlValueStorage.hpp.

Member Data Documentation

◆ precision

std::uint8_t Lightweight::SqlNumericStorage::precision

Total number of decimal digits.

Definition at line 77 of file SqlValueStorage.hpp.

Referenced by Lightweight::SqlNumeric< ThePrecision, TheScale >::assign().

◆ scale

◆ sign

std::uint8_t Lightweight::SqlNumericStorage::sign

◆ val

std::uint8_t Lightweight::SqlNumericStorage::val[16]

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