OmniSciDB
a667adc9c8
|
Functions for System Catalog. More...
#include "SysCatalog.h"
#include <algorithm>
#include <cassert>
#include <exception>
#include <filesystem>
#include <list>
#include <memory>
#include <random>
#include <sstream>
#include <string_view>
#include "Catalog.h"
#include "Catalog/AuthMetadata.h"
#include "QueryEngine/ExternalCacheInvalidators.h"
#include <boost/algorithm/string/predicate.hpp>
#include <boost/filesystem.hpp>
#include <boost/range/adaptor/map.hpp>
#include <boost/version.hpp>
#include "../Parser/ParserNode.h"
#include "../Shared/File.h"
#include "../Shared/StringTransform.h"
#include "../Shared/measure.h"
#include "MapDRelease.h"
#include "RWLocks.h"
#include "include/bcrypt.h"
Go to the source code of this file.
Namespaces | |
anonymous_namespace{SysCatalog.cpp} | |
Catalog_Namespace | |
Catalog_Namespace::anonymous_namespace{SysCatalog.cpp} | |
Typedefs | |
using | Catalog_Namespace::sys_write_lock = write_lock< SysCatalog > |
using | Catalog_Namespace::sys_sqlite_lock = sqlite_lock< SysCatalog > |
Functions | |
std::string | anonymous_namespace{SysCatalog.cpp}::hash_with_bcrypt (const std::string &pwd) |
std::filesystem::path | anonymous_namespace{SysCatalog.cpp}::copy_catalog_if_read_only (std::filesystem::path base_data_path) |
void | Catalog_Namespace::anonymous_namespace{SysCatalog.cpp}::deleteObjectPrivileges (std::unique_ptr< SqliteConnector > &sqliteConnector, std::string roleName, bool userRole, DBObject &object) |
void | Catalog_Namespace::anonymous_namespace{SysCatalog.cpp}::insertOrUpdateObjectPrivileges (std::unique_ptr< SqliteConnector > &sqliteConnector, std::string roleName, bool userRole, DBObject &object) |
static bool | Catalog_Namespace::parseUserMetadataFromSQLite (const std::unique_ptr< SqliteConnector > &conn, UserMetadata &user) |
auto | Catalog_Namespace::anonymous_namespace{SysCatalog.cpp}::get_users (std::unique_ptr< SqliteConnector > &sqliteConnector, const int32_t dbId=-1) |
Variables | |
std::string | g_base_path |
bool | g_enable_fsi |
bool | g_enable_s3_fsi |
bool | g_read_only |
bool | Catalog_Namespace::g_log_user_id {false} |
auto | Catalog_Namespace::anonymous_namespace{SysCatalog.cpp}::append_with_commas |
Functions for System Catalog.
Definition in file SysCatalog.cpp.
std::string g_base_path |
Definition at line 62 of file SysCatalog.cpp.
Referenced by Catalog_Namespace::Catalog::buildMaps(), Catalog_Namespace::Catalog::delDictionary(), Parser::ExportQueryStmt::execute(), DBHandler::initialize(), main(), QueryRunner::QueryRunner::QueryRunner(), Catalog_Namespace::Catalog::setColumnDictionary(), and Catalog_Namespace::Catalog::updateDictionaryNames().
bool g_enable_fsi |
Definition at line 92 of file Catalog.cpp.
bool g_enable_s3_fsi |
Definition at line 93 of file Catalog.cpp.
bool g_read_only |
Definition at line 38 of file File.cpp.
Referenced by File_Namespace::append(), File_Namespace::appendPage(), anonymous_namespace{SysCatalog.cpp}::copy_catalog_if_read_only(), File_Namespace::create(), File_Namespace::open(), File_Namespace::FileInfo::openExistingFile(), File_Namespace::removeFile(), CommandLineOptions::validate(), File_Namespace::write(), File_Namespace::writePage(), and File_Namespace::writePartialPage().