OmniSciDB  2e3a973ef4
DdlUtils.h File Reference
#include "Catalog/Catalog.h"
#include "Shared/sqltypes.h"
+ Include dependency graph for DdlUtils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ddl_utils::SqlType
 
class  ddl_utils::Encoding
 
class  ddl_utils::FilePathWhitelist
 
class  ddl_utils::FilePathBlacklist
 

Namespaces

 ddl_utils
 

Enumerations

enum  ddl_utils::DataTransferType { ddl_utils::DataTransferType::IMPORT = 1, ddl_utils::DataTransferType::EXPORT }
 
enum  ddl_utils::TableType { ddl_utils::TableType::TABLE = 1, ddl_utils::TableType::VIEW, ddl_utils::TableType::FOREIGN_TABLE }
 

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)
 
void ddl_utils::validate_allowed_file_path (const std::string &file_path, const DataTransferType data_transfer_type, const bool allow_wildcards)