tdslite latest
C++ API reference
Loading...
Searching...
No Matches
tdsl::sql_money Struct Reference

money sql type More...

#include <tdslite/detail/sqltypes/sql_money.hpp>

Public Member Functions

 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.
 

Detailed Description

money sql type

Constructor & Destructor Documentation

◆ sql_money()

tdsl::sql_money::sql_money ( tdsl::byte_view  v,
const tdsl::tds_column_info &  col 
)
inlineexplicitnoexcept

Construct a new sql money object.

Parameters
[in]vView to bytes to be interpreted as sql_money

Member Function Documentation

◆ 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: