OmniSciDB
94e8789169
|
Namespaces | |
anonymous_namespace{Catalog.cpp} | |
anonymous_namespace{SysCatalog.cpp} | |
Classes | |
struct | TableEpochInfo |
class | Catalog |
class for a per-database catalog. also includes metadata for the current database and the current user. More... | |
class | read_lock |
class | sqlite_lock |
class | write_lock |
class | SessionInfo |
struct | UserMetadata |
struct | DBMetadata |
struct | DBSummary |
class | CommonFileOperations |
class | SysCatalog |
Functions | |
bool | contains_spaces (std::string_view str) |
returns true if the string contains one or more spaces More... | |
bool | 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 | is_reserved_sql_keyword (std::string_view str) |
returns true if the string equals an OmniSci SQL reserved keyword More... | |
std::ostream & | operator<< (std::ostream &os, const SessionInfo &session_info) |
static bool | parseUserMetadataFromSQLite (const std::unique_ptr< SqliteConnector > &conn, UserMetadata &user) |
Variables | |
const int | DEFAULT_INITIAL_VERSION = 1 |
const int | MAPD_TEMP_TABLE_START_ID |
const int | MAPD_TEMP_DICT_START_ID |
bool | g_log_user_id {false} |
using Catalog_Namespace::cat_read_lock = typedef read_lock<Catalog> |
Definition at line 112 of file Catalog.cpp.
using Catalog_Namespace::cat_sqlite_lock = typedef sqlite_lock<Catalog> |
Definition at line 114 of file Catalog.cpp.
using Catalog_Namespace::cat_write_lock = typedef write_lock<Catalog> |
Definition at line 113 of file Catalog.cpp.
using Catalog_Namespace::ColumnDescriptorMap = typedef std::map<ColumnKey, ColumnDescriptor*> |
using Catalog_Namespace::ColumnDescriptorMapById = typedef std::map<ColumnIdKey, ColumnDescriptor*> |
using Catalog_Namespace::ColumnIdKey = typedef std::tuple<int, int> |
using Catalog_Namespace::ColumnKey = typedef std::tuple<int, std::string> |
using Catalog_Namespace::DashboardDescriptorMap = typedef std::map<std::string, std::shared_ptr<DashboardDescriptor>> |
using Catalog_Namespace::DBSummaryList = typedef std::list<DBSummary> |
Definition at line 123 of file SysCatalog.h.
using Catalog_Namespace::DeletedColumnPerTableMap = typedef std::unordered_map<const TableDescriptor*, const ColumnDescriptor*> |
using Catalog_Namespace::DictDescriptorMapById = typedef std::map<DictRef, std::unique_ptr<DictDescriptor>> |
using Catalog_Namespace::ForeignServerMap = typedef std::map<std::string, std::shared_ptr<foreign_storage::ForeignServer>> |
using Catalog_Namespace::ForeignServerMapById = typedef std::map<int, std::shared_ptr<foreign_storage::ForeignServer>> |
using Catalog_Namespace::LinkDescriptorMap = typedef std::map<std::string, LinkDescriptor*> |
using Catalog_Namespace::LinkDescriptorMapById = typedef std::map<int, LinkDescriptor*> |
using Catalog_Namespace::LogicalToPhysicalTableMapById = typedef std::map<int32_t, std::vector<int32_t>> |
typedef read_lock< SysCatalog > Catalog_Namespace::sys_read_lock |
Definition at line 111 of file Catalog.cpp.
using Catalog_Namespace::sys_sqlite_lock = typedef sqlite_lock<SysCatalog> |
Definition at line 81 of file SysCatalog.cpp.
using Catalog_Namespace::sys_write_lock = typedef write_lock<SysCatalog> |
Definition at line 80 of file SysCatalog.cpp.
using Catalog_Namespace::TableDescriptorMap = typedef std::map<std::string, TableDescriptor*> |
using Catalog_Namespace::TableDescriptorMapById = typedef std::map<int, TableDescriptor*> |
|
inline |
returns true if the string contains one or more spaces
Definition at line 4314 of file Catalog.cpp.
Referenced by Catalog_Namespace::Catalog::dumpCreateTable().
|
inline |
returns true if the string contains one or more OmniSci SQL reserved characters
Definition at line 4321 of file Catalog.cpp.
Referenced by Catalog_Namespace::Catalog::dumpCreateTable().
|
inline |
returns true if the string equals an OmniSci SQL reserved keyword
Definition at line 4328 of file Catalog.cpp.
References reserved_keywords, and to_upper().
Referenced by Catalog_Namespace::Catalog::dumpCreateTable().
std::ostream & Catalog_Namespace::operator<< | ( | std::ostream & | os, |
const SessionInfo & | session_info | ||
) |
Definition at line 53 of file SessionInfo.cpp.
References Catalog_Namespace::SessionInfo::get_public_session_id().
|
static |
Definition at line 1250 of file SysCatalog.cpp.
References Catalog_Namespace::UserMetadata::can_login, Catalog_Namespace::UserMetadata::defaultDbId, g_log_user_id, Catalog_Namespace::UserMetadata::isSuper, LOG, Catalog_Namespace::UserMetadata::passwd_hash, Catalog_Namespace::UserMetadata::userId, Catalog_Namespace::UserMetadata::userLoggable(), Catalog_Namespace::UserMetadata::userName, and logger::WARNING.
Referenced by Catalog_Namespace::SysCatalog::getMetadataForUser(), and Catalog_Namespace::SysCatalog::getMetadataForUserById().
const int Catalog_Namespace::DEFAULT_INITIAL_VERSION = 1 |
Definition at line 101 of file Catalog.cpp.
Referenced by Catalog_Namespace::Catalog::updateDeletedColumnIndicator(), Catalog_Namespace::Catalog::updateDictionaryNames(), and Catalog_Namespace::Catalog::updatePageSize().
bool Catalog_Namespace::g_log_user_id {false} |
Definition at line 83 of file SysCatalog.cpp.
Referenced by Catalog_Namespace::SysCatalog::checkPrivileges(), Catalog_Namespace::SysCatalog::createUser(), Catalog_Namespace::SysCatalog::dropUser(), CommandLineOptions::fillOptions(), Catalog_Namespace::SysCatalog::getMetadataWithDefaultDB(), parseUserMetadataFromSQLite(), Catalog_Namespace::SysCatalog::renameUser(), Catalog_Namespace::UserMetadata::userLoggable(), and CommandLineOptions::validate().
const int Catalog_Namespace::MAPD_TEMP_DICT_START_ID |
Definition at line 104 of file Catalog.cpp.
const int Catalog_Namespace::MAPD_TEMP_TABLE_START_ID |
Definition at line 102 of file Catalog.cpp.