SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches

◆ ToString()

constexpr std::string_view sqt::ConflictActionEnum::ToString ( ConflictAction action)
staticconstexprnoexcept

Converts the specified sqt::ConflictAction value to a string.

Parameters
actionThe value to be converted.
Returns
A string for the specified value. If the value is not recognized, an empty string is returned.

The conversion follows the following mapping:

Value String
sqt::ConflictAction::Abort abort
sqt::ConflictAction::Fail fail
sqt::ConflictAction::Ignore ignore
sqt::ConflictAction::Replace replace
sqt::ConflictAction::Rollback rollback