OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 "Geospatial/Types.h"
#include "Parser/ReservedKeywords.h"
#include "Shared/SysDefinitions.h"
#include "Shared/file_path_util.h"
#include "Shared/misc.h"
#include "Shared/sqltypes.h"
+ Include dependency graph for DdlUtils.cpp:

Go to the source code of this file.

Namespaces

 ddl_utils
 
 ddl_utils::alter_column_utils
 
 ddl_utils::anonymous_namespace{DdlUtils.cpp}
 

Functions

bool ddl_utils::alter_column_utils::compare_sql_type_infos (const SQLTypeInfo &lhs, const SQLTypeInfo &rhs)
 
CompareResult ddl_utils::alter_column_utils::compare_column_descriptors (const ColumnDescriptor *lhs, const ColumnDescriptor *rhs)
 
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::anonymous_namespace{DdlUtils.cpp}::validate_literal (const std::string &val, SQLTypeInfo column_type, const std::string &column_name)
 
void ddl_utils::validate_and_set_default_value (ColumnDescriptor &cd, const std::string *default_value, bool not_null)
 
void ddl_utils::set_column_descriptor (const std::string &column_name, ColumnDescriptor &cd, SqlType *column_type, const bool not_null, const Encoding *encoding, const std::string *default_value)
 
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_table_type (const TableDescriptor *td, const TableType expected_table_type, const std::string &command)
 
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

bool g_use_date_in_days_default_encoding {true}

Definition at line 35 of file DdlUtils.cpp.

Referenced by ddl_utils::set_default_encoding().