20 #include <unordered_map>
27 namespace foreign_storage {
38 const std::string& server_name,
40 const std::string& options_str,
46 , data_wrapper_type(data_wrapper_type)
48 , creation_time(creation_time) {}
52 const std::map<std::string, std::string, std::less<>>&
options,
56 , data_wrapper_type(data_wrapper_type)
void validateStorageParameters()
static const ForeignDataWrapper & createForValidation(const std::string &data_wrapper_type, const ForeignTable *foreign_table=nullptr)
static void validateDataWrapperType(const std::string &data_wrapper_type)
ForeignServer(const int32_t server_id, const std::string &server_name, const std::string &data_wrapper_type, const std::string &options_str, const int32_t user_id, const time_t creation_time)
std::string data_wrapper_type
ForeignServer(const std::string &server_name, const std::string &data_wrapper_type, const std::map< std::string, std::string, std::less<>> &options, const int32_t user_id)
virtual void validateServerOptions(const ForeignServer *foreign_server) const =0