20 #include <unordered_map>
25 namespace foreign_storage {
36 const std::string& server_name,
38 const std::string& options_str,
44 , data_wrapper_type(data_wrapper_type)
46 , creation_time(creation_time) {}
50 const std::map<std::string, std::string, std::less<>>&
options,
54 , 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