money sql type
More...
#include <tdslite/detail/sqltypes/sql_money.hpp>
|
| | sql_money (tdsl::byte_view v, const tdsl::tds_column_info &col) noexcept |
| | Construct a new sql money object.
|
| |
| tdsl::int64_t | integer () const noexcept |
| | Calculate the integer part.
|
| |
| tdsl::int64_t | fraction () const noexcept |
| | Calculate the fraction part.
|
| |
| tdsl::int64_t | raw () const noexcept |
| | Raw 8 byte integer stored in the database.
|
| |
◆ sql_money()
Construct a new sql money object.
- Parameters
-
| [in] | v | View to bytes to be interpreted as sql_money |
◆ integer()
| tdsl::int64_t tdsl::sql_money::integer |
( |
| ) |
const |
|
inlinenoexcept |
Calculate the integer part.
- Returns
- tdsl::int64_t sql_money integer part
◆ fraction()
| tdsl::int64_t tdsl::sql_money::fraction |
( |
| ) |
const |
|
inlinenoexcept |
Calculate the fraction part.
- Returns
- tdsl::int64_t sql_money fraction part
◆ raw()
| tdsl::int64_t tdsl::sql_money::raw |
( |
| ) |
const |
|
inlinenoexcept |
Raw 8 byte integer stored in the database.
The documentation for this struct was generated from the following file: