Lightweight 0.1.0
Loading...
Searching...
No Matches
Data Types

Special purpose data types for SQL data binding. More...

Classes

class  SqlBinary
 Represents a binary data type. More...
 
struct  SqlDate
 
struct  SqlDateTime
 
class  SqlDynamicString< N, T >
 
class  SqlFixedString< N, T, Mode >
 
struct  SqlGuid
 
struct  SqlNullType
 
struct  SqlNumeric< ThePrecision, TheScale >
 
struct  SqlText
 
struct  SqlTime
 
struct  SqlVariant
 Represents a value that can be any of the supported SQL data types. More...
 
struct  Field< T, P1, P2 >
 Represents a single column in a table. More...
 

Typedefs

template<std::size_t N>
using SqlDynamicAnsiString = SqlDynamicString< N, char >
 
template<std::size_t N>
using SqlDynamicUtf16String = SqlDynamicString< N, char16_t >
 
template<std::size_t N>
using SqlDynamicUtf32String = SqlDynamicString< N, char32_t >
 
template<std::size_t N>
using SqlDynamicWideString = SqlDynamicString< N, wchar_t >
 
template<std::size_t N>
using SqlAnsiString = SqlFixedString< N, char, SqlFixedStringMode::VARIABLE_SIZE >
 
template<std::size_t N>
using SqlUtf16String = SqlFixedString< N, char16_t, SqlFixedStringMode::VARIABLE_SIZE >
 
template<std::size_t N>
using SqlUtf32String = SqlFixedString< N, char32_t, SqlFixedStringMode::VARIABLE_SIZE >
 
template<std::size_t N>
using SqlWideString = SqlFixedString< N, wchar_t, SqlFixedStringMode::VARIABLE_SIZE >
 
template<std::size_t N, typename T = char>
using SqlTrimmedFixedString = SqlFixedString< N, T, SqlFixedStringMode::FIXED_SIZE_RIGHT_TRIMMED >
 

Variables

constexpr auto SqlNullValue = SqlNullType {}
 

Detailed Description

Special purpose data types for SQL data binding.

Typedef Documentation

◆ SqlDynamicAnsiString

template<std::size_t N>
using SqlDynamicAnsiString = SqlDynamicString<N, char>

Fixed-size string of element type char with a capacity of N characters.

Definition at line 200 of file SqlDynamicString.hpp.

◆ SqlDynamicUtf16String

template<std::size_t N>
using SqlDynamicUtf16String = SqlDynamicString<N, char16_t>

Fixed-size string of element type char16_t with a capacity of N characters.

Definition at line 206 of file SqlDynamicString.hpp.

◆ SqlDynamicUtf32String

template<std::size_t N>
using SqlDynamicUtf32String = SqlDynamicString<N, char32_t>

Fixed-size string of element type char32_t with a capacity of N characters.

Definition at line 212 of file SqlDynamicString.hpp.

◆ SqlDynamicWideString

template<std::size_t N>
using SqlDynamicWideString = SqlDynamicString<N, wchar_t>

Fixed-size string of element type wchar_t with a capacity of N characters.

Definition at line 218 of file SqlDynamicString.hpp.

◆ SqlAnsiString

template<std::size_t N>
using SqlAnsiString = SqlFixedString<N, char, SqlFixedStringMode::VARIABLE_SIZE>

Fixed-size string of element type char with a capacity of N characters.

Definition at line 285 of file SqlFixedString.hpp.

◆ SqlUtf16String

template<std::size_t N>
using SqlUtf16String = SqlFixedString<N, char16_t, SqlFixedStringMode::VARIABLE_SIZE>

Fixed-size string of element type char16_t with a capacity of N characters.

Definition at line 291 of file SqlFixedString.hpp.

◆ SqlUtf32String

template<std::size_t N>
using SqlUtf32String = SqlFixedString<N, char32_t, SqlFixedStringMode::VARIABLE_SIZE>

Fixed-size string of element type char32_t with a capacity of N characters.

Definition at line 297 of file SqlFixedString.hpp.

◆ SqlWideString

template<std::size_t N>
using SqlWideString = SqlFixedString<N, wchar_t, SqlFixedStringMode::VARIABLE_SIZE>

Fixed-size string of element type wchar_t with a capacity of N characters.

Definition at line 303 of file SqlFixedString.hpp.

◆ SqlTrimmedFixedString

template<std::size_t N, typename T = char>
using SqlTrimmedFixedString = SqlFixedString<N, T, SqlFixedStringMode::FIXED_SIZE_RIGHT_TRIMMED>

Fixed-size (right-trimmed) string of element type char with a capacity of N characters.

Definition at line 309 of file SqlFixedString.hpp.

Variable Documentation

◆ SqlNullValue

constexpr auto SqlNullValue = SqlNullType {}
constexpr

Used to indicate a NULL value in a SQL query.

Definition at line 18 of file SqlNullValue.hpp.