OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
 
struct  ddl_utils::alter_column_utils::CompareResult
 

Namespaces

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