Formatting
publish / publish (push) Successful in 16m36s

This commit is contained in:
khodowany
2026-09-14 23:55:04 -05:00
parent 16c37ab1c5
commit 46f7c13121
23 changed files with 391 additions and 454 deletions
+4 -3
View File
@@ -11,6 +11,7 @@
#include <noto/detail/errors.hpp>
namespace {
auto code_from(std::int32_t code) -> std::int32_t {
@@ -51,7 +52,7 @@ auto code_from(std::int32_t code) -> std::int32_t {
}
}
auto message_from(std::int32_t code, sqlite3* database, std::string_view operation) -> std::string {
auto message_from(std::int32_t code, sqlite3 *database, std::string_view operation) -> std::string {
auto message = std::string{};
if (!operation.empty()) {
message += operation;
@@ -67,11 +68,11 @@ auto message_from(std::int32_t code, sqlite3* database, std::string_view operati
}
auto noto::error_from(std::int32_t code, sqlite3* database, std::string_view operation) -> modulus::error {
auto noto::error_from(std::int32_t code, sqlite3 *database, std::string_view operation) -> modulus::error {
return noto::detail::make_error(code_from(code), message_from(code, database, operation));
}
auto noto::result_from(std::int32_t code, sqlite3* database, std::string_view operation) -> std::expected<void, modulus::error> {
auto noto::result_from(std::int32_t code, sqlite3 *database, std::string_view operation) -> std::expected<void, modulus::error> {
if (code == SQLITE_OK || code == SQLITE_ROW || code == SQLITE_DONE) {
return {};
}