OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
foreign_storage::ForeignServer Struct Reference

#include <ForeignServer.h>

+ Inheritance diagram for foreign_storage::ForeignServer:
+ Collaboration diagram for foreign_storage::ForeignServer:

Public Member Functions

 ForeignServer ()
 
 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)
 
 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)
 
void validate ()
 
- Public Member Functions inherited from foreign_storage::OptionsContainer
 OptionsContainer ()
 
 OptionsContainer (const OptionsMap &options)
 
 OptionsContainer (const std::string &options_str)
 
void populateOptionsMap (OptionsMap &&options_map, bool clear=false)
 
void populateOptionsMap (const rapidjson::Value &ddl_options, bool clear=false)
 
void populateOptionsMap (const std::string &options_json, bool clear=false)
 
std::string getOptionsAsJsonString () const
 
std::optional< std::string > getOption (const std::string_view &key) const
 
bool getOptionAsBool (const std::string_view &key) const
 

Public Attributes

int32_t id
 
std::string name
 
std::string data_wrapper_type
 
int32_t user_id
 
time_t creation_time
 
- Public Attributes inherited from foreign_storage::OptionsContainer
OptionsMap options
 

Private Member Functions

void validateStorageParameters ()
 

Detailed Description

Definition at line 26 of file ForeignServer.h.

Constructor & Destructor Documentation

foreign_storage::ForeignServer::ForeignServer ( )
inline

Definition at line 33 of file ForeignServer.h.

33 {}
foreign_storage::ForeignServer::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 
)
inline
foreign_storage::ForeignServer::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 
)
inline

Member Function Documentation

void foreign_storage::ForeignServer::validate ( )
inline

Definition at line 57 of file ForeignServer.h.

References data_wrapper_type, foreign_storage::ForeignDataWrapperFactory::validateDataWrapperType(), and validateStorageParameters().

Referenced by Catalog_Namespace::Catalog::setForeignServerDataWrapper(), and Catalog_Namespace::Catalog::setForeignServerOptions().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void foreign_storage::ForeignServer::validateStorageParameters ( )
inlineprivate

Definition at line 63 of file ForeignServer.h.

References foreign_storage::ForeignDataWrapperFactory::createForValidation(), data_wrapper_type, and foreign_storage::ForeignDataWrapper::validateServerOptions().

Referenced by validate().

63  {
65  ->validateServerOptions(this);
66  }
static const ForeignDataWrapper * createForValidation(const std::string &data_wrapper_type, const ForeignTable *foreign_table=nullptr)
virtual void validateServerOptions(const ForeignServer *foreign_server) const =0

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

time_t foreign_storage::ForeignServer::creation_time

Definition at line 31 of file ForeignServer.h.

int32_t foreign_storage::ForeignServer::user_id

The documentation for this struct was generated from the following file: