Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
database_interface.h File Reference

Abstract database interface with value types and query operations. More...

#include <cstdint>
#include <map>
#include <string>
#include <variant>
#include <vector>
#include "../patterns/result.h"
Include dependency graph for database_interface.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kcenon::common::database_null
 Represents NULL values in database results. More...
 
class  kcenon::common::interfaces::IDatabase
 Standard interface for database operations. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::common
 Core interfaces.
 
namespace  kcenon::common::interfaces
 

Typedefs

using kcenon::common::database_value = std::variant<database_null, std::string, std::int64_t, double, bool>
 Variant type for database column values.
 
using kcenon::common::database_row = std::map<std::string, database_value>
 Map of column names to values representing a database row.
 
using kcenon::common::database_result = std::vector<database_row>
 Vector of rows representing a complete query result set.
 

Detailed Description

Abstract database interface with value types and query operations.

Defines IDatabase, database_value variant, and database_row for backend-agnostic database access across the ecosystem.

See also
database_system For the concrete implementations

Definition in file database_interface.h.