Lightweight 0.20250904.0
Loading...
Searching...
No Matches
Lightweight::SqlGuid Struct Reference

#include <SqlGuid.hpp>

Public Member Functions

constexpr std::weak_ordering operator<=> (SqlGuid const &other) const noexcept=default
 
constexpr bool operator== (SqlGuid const &other) const noexcept
 
constexpr bool operator!= (SqlGuid const &other) const noexcept
 
constexpr operator bool () const noexcept
 
constexpr bool operator! () const noexcept
 

Static Public Member Functions

static SqlGuid Create () noexcept
 Creates a new non-empty GUID.
 
static std::optional< SqlGuidTryParse (std::string_view const &text) noexcept
 Parses a GUID from a string.
 
static SqlGuid constexpr UnsafeParse (std::string_view const &text) noexcept
 Parses a GUID from a string. Use with caution and always prefer TryParse at all cost.
 

Public Attributes

uint8_t data [16] {}
 

Detailed Description

Represents a GUID (Globally Unique Identifier).

Definition at line 19 of file SqlGuid.hpp.

Member Function Documentation

◆ UnsafeParse()

constexpr SqlGuid Lightweight::SqlGuid::UnsafeParse ( std::string_view const &  text)
staticconstexprnoexcept

Parses a GUID from a string. Use with caution and always prefer TryParse at all cost.

Definition at line 57 of file SqlGuid.hpp.

◆ operator==()

constexpr bool Lightweight::SqlGuid::operator== ( SqlGuid const &  other) const
inlineconstexprnoexcept

Definition at line 34 of file SqlGuid.hpp.

◆ operator!=()

constexpr bool Lightweight::SqlGuid::operator!= ( SqlGuid const &  other) const
inlineconstexprnoexcept

Definition at line 39 of file SqlGuid.hpp.

◆ operator bool()

constexpr Lightweight::SqlGuid::operator bool ( ) const
inlineexplicitconstexprnoexcept

Definition at line 45 of file SqlGuid.hpp.

◆ operator!()

constexpr bool Lightweight::SqlGuid::operator! ( ) const
inlineconstexprnoexcept

Definition at line 51 of file SqlGuid.hpp.

Member Data Documentation

◆ data

uint8_t Lightweight::SqlGuid::data[16] {}

Definition at line 21 of file SqlGuid.hpp.


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