|
lintel 0.2.0
|
#include <Serialization.h>
Static Public Member Functions | |
| static std::string | serialize (T type, const std::shared_ptr< DatabaseConnectionEntry > &connectionEntry) |
| static T | deserialize (const std::string &value, const std::shared_ptr< DatabaseConnectionEntry > &connectionEntry) |
Dispatcher for type serialization that delegates to the appropriate backend (PostgreSQL or SQLite) based on the connection entry type.
| T | the type to serialize/deserialize |
|
inlinestatic |
Deserializes a string to a value using the backend for the given connection type.
| value | the string to deserialize |
| connectionEntry | the connection entry specifying the backend |
| std::runtime_error | if the connection type is not supported |
|
inlinestatic |
Serializes a value to a string using the backend for the given connection type.
| type | the value to serialize |
| connectionEntry | the connection entry specifying the backend |
| std::runtime_error | if the connection type is not supported |