23 namespace foreign_storage {
45 std::tuple<std::unique_ptr<foreign_storage::ForeignServer>,
46 std::unique_ptr<foreign_storage::UserMapping>,
47 std::unique_ptr<foreign_storage::ForeignTable>>
52 const int32_t user_id);
58 std::tuple<std::unique_ptr<foreign_storage::ForeignServer>,
59 std::unique_ptr<foreign_storage::UserMapping>,
60 std::unique_ptr<foreign_storage::ForeignTable>>
70 static constexpr
char const*
CSV =
"DELIMITED_FILE";
71 static constexpr
char const*
PARQUET =
"PARQUET_FILE";
113 static std::unique_ptr<ForeignDataWrapper>
create(
const std::string& data_wrapper_type,
120 const std::string& file_path,
127 const std::string& file_path,
133 const std::string& file_path,
141 const std::string& data_wrapper_type,
158 const std::string& data_wrapper_type,
167 static std::map<std::string, std::unique_ptr<ForeignDataWrapper>>
static std::unique_ptr< ForeignDataWrapper > createForImport(const std::string &data_wrapper_type, const int db_id, const ForeignTable *foreign_table, const UserMapping *user_mapping)
static constexpr char const * REGEX_PARSER
static const ForeignDataWrapper * createForValidation(const std::string &data_wrapper_type, const ForeignTable *foreign_table=nullptr)
static std::unique_ptr< ForeignDataWrapper > create(const std::string &data_wrapper_type, const int db_id, const ForeignTable *foreign_table)
static constexpr char const * INTERNAL_STORAGE_STATS
static constexpr std::array< char const *, 6 > INTERNAL_DATA_WRAPPERS
static constexpr char const * INTERNAL_CATALOG
static constexpr std::array< char const *, 5 > IN_MEMORY_DATA_WRAPPERS
std::tuple< std::unique_ptr< foreign_storage::ForeignServer >, std::unique_ptr< foreign_storage::UserMapping >, std::unique_ptr< foreign_storage::ForeignTable > > create_proxy_fsi_objects(const std::string ©_from_source, const import_export::CopyParams ©_params, const int db_id, const TableDescriptor *table, const int32_t user_id)
Create proxy fsi objects for use outside FSI.
static std::map< std::string, std::unique_ptr< ForeignDataWrapper > > validation_data_wrappers_
static std::unique_ptr< ForeignDataWrapper > createForGeneralImport(const import_export::CopyParams ©_params, const int db_id, const ForeignTable *foreign_table, const UserMapping *user_mapping)
static constexpr char const * INTERNAL_ML_MODEL_METADATA
static void validateDataWrapperType(const std::string &data_wrapper_type)
Encapsulates an enumeration of foreign data wrapper type strings.
bool is_valid_source_type(const import_export::CopyParams ©_params)
static constexpr std::array< std::string_view, 9 > supported_data_wrapper_types
static constexpr char const * INTERNAL_EXECUTOR_STATS
void validate_regex_parser_options(const import_export::CopyParams ©_params)
static std::unique_ptr< ForeignServer > createForeignServerProxy(const int db_id, const int user_id, const std::string &file_path, const import_export::CopyParams ©_params)
static constexpr char const * INTERNAL_MEMORY_STATS
static std::unique_ptr< ForeignTable > createForeignTableProxy(const int db_id, const TableDescriptor *table, const std::string &file_path, const import_export::CopyParams ©_params, const ForeignServer *server)
static constexpr char const * CSV
static constexpr char const * INTERNAL_LOGS
static constexpr char const * PARQUET
static std::unique_ptr< UserMapping > createUserMappingProxyIfApplicable(const int db_id, const int user_id, const std::string &file_path, const import_export::CopyParams ©_params, const ForeignServer *server)