OmniSciDB  2e3a973ef4
DdlUtils.cpp File Reference
#include "DdlUtils.h"
#include <unordered_set>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include "rapidjson/document.h"
#include "Fragmenter/FragmentDefaultValues.h"
#include "OSDependent/omnisci_glob.h"
#include "Parser/ReservedKeywords.h"
#include "Shared/misc.h"
+ Include dependency graph for DdlUtils.cpp:

Go to the source code of this file.

Namespaces

 ddl_utils
 

Functions

void ddl_utils::set_default_encoding (ColumnDescriptor &cd)
 
void ddl_utils::validate_and_set_fixed_encoding (ColumnDescriptor &cd, int encoding_size, const SqlType *column_type)
 
void ddl_utils::validate_and_set_dictionary_encoding (ColumnDescriptor &cd, int encoding_size)
 
void ddl_utils::validate_and_set_none_encoding (ColumnDescriptor &cd)
 
void ddl_utils::validate_and_set_sparse_encoding (ColumnDescriptor &cd, int encoding_size)
 
void ddl_utils::validate_and_set_compressed_encoding (ColumnDescriptor &cd, int encoding_size)
 
void ddl_utils::validate_and_set_date_encoding (ColumnDescriptor &cd, int encoding_size)
 
void ddl_utils::validate_and_set_encoding (ColumnDescriptor &cd, const Encoding *encoding, const SqlType *column_type)
 
void ddl_utils::validate_and_set_type (ColumnDescriptor &cd, SqlType *column_type)
 
void ddl_utils::validate_and_set_array_size (ColumnDescriptor &cd, const SqlType *column_type)
 
void ddl_utils::set_column_descriptor (const std::string &column_name, ColumnDescriptor &cd, SqlType *column_type, const bool not_null, const Encoding *encoding)
 
void ddl_utils::set_default_table_attributes (const std::string &table_name, TableDescriptor &td, const int32_t column_count)
 
void ddl_utils::validate_non_duplicate_column (const std::string &column_name, std::unordered_set< std::string > &upper_column_names)
 
void ddl_utils::validate_non_reserved_keyword (const std::string &column_name)
 
void ddl_utils::validate_drop_table_type (const TableDescriptor *td, const TableType expected_table_type)
 
std::string ddl_utils::table_type_enum_to_string (const TableType table_type)
 
std::string ddl_utils::get_malformed_config_error_message (const std::string &config_key)
 
void ddl_utils::validate_expanded_file_path (const std::string &file_path, const std::vector< std::string > &whitelisted_root_paths)
 
std::vector< std::string > ddl_utils::get_expanded_file_paths (const std::string &file_path, const DataTransferType data_transfer_type)
 
void ddl_utils::validate_allowed_file_path (const std::string &file_path, const DataTransferType data_transfer_type, const bool allow_wildcards)
 
void ddl_utils::set_whitelisted_paths (const std::string &config_key, const std::string &config_value, std::vector< std::string > &whitelisted_paths)
 

Variables

bool g_use_date_in_days_default_encoding {true}
 

Variable Documentation

◆ g_use_date_in_days_default_encoding

bool g_use_date_in_days_default_encoding {true}

Definition at line 32 of file DdlUtils.cpp.

Referenced by ddl_utils::set_default_encoding().