|
Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
|
Namespaces | |
| namespace | async |
| namespace | backends |
| namespace | concepts |
| namespace | core |
| namespace | detail |
| namespace | integrated |
| namespace | monitoring |
| namespace | orm |
| namespace | protocol |
| namespace | query |
| namespace | security |
| namespace | testing |
| namespace | tests |
| namespace | utils |
Classes | |
| class | database_context |
| Dependency injection container for database components. More... | |
| class | database_manager |
| Manages database connections and operations. More... | |
| class | immutable_query_builder |
| Thread-safe immutable query builder using functional programming style. More... | |
| class | postgres_manager |
| Manages PostgreSQL database operations. More... | |
| class | query_builder |
| Universal query builder that adapts to different database types. More... | |
| class | query_condition |
| Represents a WHERE condition in a query. More... | |
| class | query_dialect |
| Abstract interface for database-specific query formatting. More... | |
Typedefs | |
| template<typename T > | |
| using | Result = kcenon::common::Result<T> |
| Primary Result type - use this for all database operations. | |
| using | VoidResult = kcenon::common::VoidResult |
| Primary VoidResult type - use this for void operations. | |
| using | error_info = kcenon::common::error_info |
| Primary error type. | |
Enumerations | |
| enum class | error_code { success = 0 , unknown_error = -1 , invalid_argument = -2 , not_implemented = -3 , invalid_state = -4 , connection_failed = -5 , query_failed = -6 , timeout = -7 } |
| Error codes for database operations. More... | |
| enum class | database_types : uint8_t { none = 0 , postgres = 1 , sqlite = 3 , oracle = 4 , mongodb = 5 , redis = 6 } |
| Represents various database backends or modes. More... | |
| enum class | join_type { inner , left , right , full_outer , cross } |
| Types of SQL joins. More... | |
| enum class | sort_order { asc , desc } |
| Sort order for ORDER BY clauses. More... | |
Functions | |
| constexpr const char * | to_string (database_types type) noexcept |
| Converts database_types enum to string representation. | |
| std::unique_ptr< query_dialect > | create_dialect (database_types type) |
| Factory function to create appropriate dialect for database type. | |
| using database::error_info = kcenon::common::error_info |
| using database::Result = kcenon::common::Result<T> |
| using database::VoidResult = kcenon::common::VoidResult |
|
strong |
Represents various database backends or modes.
This enumeration is used to specify which database type is being targeted for operations like connection, querying, and so forth.
Definition at line 23 of file database_types.h.
|
strong |
Error codes for database operations.
| Enumerator | |
|---|---|
| success | |
| unknown_error | |
| invalid_argument | |
| not_implemented | |
| invalid_state | |
| connection_failed | |
| query_failed | |
| timeout | |
Definition at line 43 of file result.h.
|
strong |
Types of SQL joins.
| Enumerator | |
|---|---|
| inner | |
| left | |
| right | |
| full_outer | |
| cross | |
Definition at line 23 of file query_builder.h.
|
strong |
| std::unique_ptr< query_dialect > database::create_dialect | ( | database_types | type | ) |
Factory function to create appropriate dialect for database type.
| type | The database type. |
| std::invalid_argument | if database type is not supported. |
Definition at line 13 of file query_dialect.cpp.
References mongodb, postgres, redis, and sqlite.
Referenced by database::query_builder::ensure_dialect().

|
constexprnoexcept |
Converts database_types enum to string representation.
| type | The database type to convert. |
Definition at line 60 of file database_types.h.
References mongodb, none, oracle, postgres, redis, and sqlite.