Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
Loading...
Searching...
No Matches
result.h File Reference

Result<T> type for database_system error handling. More...

#include <kcenon/common/patterns/result.h>
Include dependency graph for result.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  database
 
namespace  database::integrated
 

Typedefs

template<typename T >
using database::Result = kcenon::common::Result<T>
 Primary Result type - use this for all database operations.
 
using database::VoidResult = kcenon::common::VoidResult
 Primary VoidResult type - use this for void operations.
 
using database::error_info = kcenon::common::error_info
 Primary error type.
 

Enumerations

enum class  database::error_code {
  database::success = 0 , database::unknown_error = -1 , database::invalid_argument = -2 , database::not_implemented = -3 ,
  database::invalid_state = -4 , database::connection_failed = -5 , database::query_failed = -6 , database::timeout = -7
}
 Error codes for database operations. More...
 

Detailed Description

Result<T> type for database_system error handling.

This file re-exports common_system's error handling types for use within the database module. All code should use:

See also
https://github.com/kcenon/common_system

Definition in file result.h.