Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
Loading...
Searching...
No Matches
database::concepts::ConnectionFactory Concept Reference

A callable that creates database connections. More...

#include <concepts.h>

Concept definition

template<typename F>
std::convertible_to<std::invoke_result_t<F>, std::unique_ptr<database_base>>
A callable that creates database connections.
Definition concepts.h:177
A callable type that can be invoked with given arguments.
Definition concepts.h:77

Detailed Description

A callable that creates database connections.

Example usage:

template<ConnectionFactory F>
void set_connection_factory(F&& factory) {
factory_ = std::forward<F>(factory);
}

Definition at line 177 of file concepts.h.