|
lintel 0.2.0
|
#include <ConnectionType.h>
Public Types | |
| enum | Value : std::int8_t { UNDEFINED = -1 , SQLite = 0 , PostgreSQL } |
Public Member Functions | |
| ConnectionType ()=default | |
| constexpr | ConnectionType (Value value) |
| constexpr | ConnectionType (std::string_view enumName) |
| constexpr | operator Value () const |
| constexpr Value | value () const |
| operator bool ()=delete | |
| std::string | toString () const |
Static Public Member Functions | |
| static std::set< Value > | values () |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const ConnectionType &connectionType) |
Defines the supported database connection types.
| enum lintel::db::ConnectionType::Value : std::int8_t |
|
default |
Default constructor, initializes to UNDEFINED.
Constructs from a Value enum.
| value | the connection type value |
|
inlineexplicitconstexpr |
Constructs from a string representation of a Value.
| enumName | string matching a Value name, defaults to UNDEFINED if not found |
|
explicitdelete |
Implicit conversion to Value.
|
inline |
|
friend |
Streams the string representation of the connection type.