OmniSciDB  8a228a1076
Catalog.cpp File Reference

Functions for database metadata access. More...

#include "Catalog.h"
#include "SysCatalog.h"
#include <sys/wait.h>
#include <algorithm>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/filesystem.hpp>
#include <boost/range/adaptor/map.hpp>
#include <boost/version.hpp>
#include <cassert>
#include <cerrno>
#include <cstdio>
#include <cstring>
#include <exception>
#include <fstream>
#include <list>
#include <memory>
#include <random>
#include <regex>
#include <sstream>
#include <boost/uuid/sha1.hpp>
#include <rapidjson/document.h>
#include <rapidjson/istreamwrapper.h>
#include <rapidjson/ostreamwrapper.h>
#include <rapidjson/writer.h>
#include "QueryEngine/Execute.h"
#include "QueryEngine/TableOptimizer.h"
#include "DataMgr/FileMgr/FileMgr.h"
#include "DataMgr/FileMgr/GlobalFileMgr.h"
#include "DataMgr/ForeignStorage/ForeignStorageInterface.h"
#include "Fragmenter/Fragmenter.h"
#include "Fragmenter/SortedOrderFragmenter.h"
#include "LockMgr/LockMgr.h"
#include "MigrationMgr/MigrationMgr.h"
#include "Parser/ParserNode.h"
#include "Shared/File.h"
#include "Shared/StringTransform.h"
#include "Shared/TimeGM.h"
#include "Shared/measure.h"
#include "StringDictionary/StringDictionaryClient.h"
#include "MapDRelease.h"
#include "RWLocks.h"
#include "SharedDictionaryValidator.h"
#include "Parser/ReservedKeywords.h"
+ Include dependency graph for Catalog.cpp:

Go to the source code of this file.

Namespaces

 Catalog_Namespace
 
 Catalog_Namespace::anonymous_namespace{Catalog.cpp}
 

Typedefs

using Catalog_Namespace::sys_read_lock = read_lock< SysCatalog >
 
using Catalog_Namespace::cat_read_lock = read_lock< Catalog >
 
using Catalog_Namespace::cat_write_lock = write_lock< Catalog >
 
using Catalog_Namespace::cat_sqlite_lock = sqlite_lock< Catalog >
 

Functions

auto Catalog_Namespace::anonymous_namespace{Catalog.cpp}::table_json_filepath (const std::string &base_path, const std::string &db_name)
 
std::string Catalog_Namespace::anonymous_namespace{Catalog.cpp}::getUserFromId (const int32_t id)
 
const ColumnDescriptorCatalog_Namespace::anonymous_namespace{Catalog.cpp}::get_foreign_col (const Catalog &cat, const Parser::SharedDictionaryDef &shared_dict_def)
 
void Catalog_Namespace::anonymous_namespace{Catalog.cpp}::unserialize_key_metainfo (std::vector< std::string > &shared_dicts, std::set< std::string > &shared_dict_column_names, const std::string keyMetainfo)
 
bool Catalog_Namespace::contains_spaces (std::string_view str)
 returns true if the string contains one or more spaces More...
 
bool Catalog_Namespace::contains_sql_reserved_chars (std::string_view str, std::string_view chars="`~!@#$%^&*()-=+[{]}\;:'<.>/?")
 returns true if the string contains one or more OmniSci SQL reserved characters More...
 
bool Catalog_Namespace::is_reserved_sql_keyword (std::string_view str)
 returns true if the string equals an OmniSci SQL reserved keyword More...
 

Variables

int g_test_against_columnId_gap {0}
 
bool g_enable_fsi {false}
 
bool g_cache_string_hash
 
bool g_serialize_temp_tables {false}
 
const int Catalog_Namespace::DEFAULT_INITIAL_VERSION = 1
 
const int Catalog_Namespace::MAPD_TEMP_TABLE_START_ID
 
const int Catalog_Namespace::MAPD_TEMP_DICT_START_ID
 

Detailed Description

Functions for database metadata access.

Author
Todd Mostak todd@.nosp@m.map-.nosp@m.d.com, Wei Hong wei@m.nosp@m.ap-d.nosp@m..com Copyright (c) 2014 MapD Technologies, Inc. All rights reserved.

Definition in file Catalog.cpp.

Variable Documentation

◆ g_cache_string_hash

bool g_cache_string_hash

◆ g_enable_fsi

◆ g_serialize_temp_tables

◆ g_test_against_columnId_gap

int g_test_against_columnId_gap {0}

Definition at line 89 of file Catalog.cpp.

Referenced by Catalog_Namespace::Catalog::createTable().