OmniSciDB
a5dc49c757
|
Functions | |
void | set_null (import_export::TypedImportBuffer *import_buffer) |
void | populate_import_buffers_for_catalog_users (const std::list< Catalog_Namespace::UserMetadata > &all_users, std::map< std::string, import_export::TypedImportBuffer * > &import_buffers) |
std::string | get_user_name (int32_t user_id) |
std::string | get_table_type (const TableDescriptor &td) |
std::string | get_table_ddl (int32_t db_id, const TableDescriptor &td) |
void | populate_import_buffers_for_catalog_tables (const std::map< int32_t, std::vector< TableDescriptor >> &tables_by_database, std::map< std::string, import_export::TypedImportBuffer * > &import_buffers) |
std::vector< std::string > | get_data_sources (const std::string &dashboard_metadata) |
void | populate_import_buffers_for_catalog_dashboards (const std::map< int32_t, std::vector< DashboardDescriptor >> &dashboards_by_database, std::map< std::string, import_export::TypedImportBuffer * > &import_buffers) |
std::vector< std::string > | get_permissions (const AccessPrivileges privileges, int32_t object_type, int32_t object_id) |
std::string | get_object_type_str (int32_t object_type) |
void | populate_import_buffers_for_catalog_permissions (const std::vector< ObjectRoleDescriptor > &object_permissions, std::map< std::string, import_export::TypedImportBuffer * > &import_buffers) |
void | populate_import_buffers_for_catalog_databases (const std::list< Catalog_Namespace::DBMetadata > &databases, std::map< std::string, import_export::TypedImportBuffer * > &import_buffers) |
void | populate_import_buffers_for_catalog_roles (const std::set< std::string > &roles, std::map< std::string, import_export::TypedImportBuffer * > &import_buffers) |
void | populate_import_buffers_for_catalog_role_assignments (const std::map< std::string, std::vector< std::string >> &user_names_by_role_, std::map< std::string, import_export::TypedImportBuffer * > &import_buffers) |
std::map< int32_t, std::vector < TableDescriptor > > | get_all_tables () |
std::map< int32_t, std::vector < DashboardDescriptor > > | get_all_dashboards () |
std::map< std::string, std::vector< std::string > > | get_all_role_assignments () |
std::map<int32_t, std::vector<DashboardDescriptor> > foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_all_dashboards | ( | ) |
Definition at line 462 of file InternalCatalogDataWrapper.cpp.
References Catalog_Namespace::SysCatalog::instance(), and shared::kInfoSchemaDbName.
Referenced by foreign_storage::InternalCatalogDataWrapper::initializeObjectsForTable().
std::map<std::string, std::vector<std::string> > foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_all_role_assignments | ( | ) |
Definition at line 475 of file InternalCatalogDataWrapper.cpp.
References Catalog_Namespace::SysCatalog::instance().
Referenced by foreign_storage::InternalCatalogDataWrapper::initializeObjectsForTable().
std::map<int32_t, std::vector<TableDescriptor> > foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_all_tables | ( | ) |
Definition at line 449 of file InternalCatalogDataWrapper.cpp.
References Catalog_Namespace::SysCatalog::instance(), and shared::kInfoSchemaDbName.
Referenced by foreign_storage::InternalCatalogDataWrapper::initializeObjectsForTable().
std::vector<std::string> foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_data_sources | ( | const std::string & | dashboard_metadata | ) |
Definition at line 166 of file InternalCatalogDataWrapper.cpp.
References json_utils::get_optional_string_value_from_object(), split(), and strip().
Referenced by populate_import_buffers_for_catalog_dashboards().
std::string foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_object_type_str | ( | int32_t | object_type | ) |
Definition at line 344 of file InternalCatalogDataWrapper.cpp.
References DashboardDBObjectType, DatabaseDBObjectType, ServerDBObjectType, TableDBObjectType, run_benchmark_import::type, UNREACHABLE, and ViewDBObjectType.
Referenced by populate_import_buffers_for_catalog_permissions().
std::vector<std::string> foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_permissions | ( | const AccessPrivileges | privileges, |
int32_t | object_type, | ||
int32_t | object_id | ||
) |
Definition at line 229 of file InternalCatalogDataWrapper.cpp.
References AccessPrivileges::ACCESS, AccessPrivileges::ALL_DASHBOARD, AccessPrivileges::ALL_DATABASE, AccessPrivileges::ALL_SERVER, AccessPrivileges::ALL_TABLE, AccessPrivileges::ALL_VIEW, AccessPrivileges::ALTER_SERVER, AccessPrivileges::ALTER_TABLE, AccessPrivileges::CREATE_DASHBOARD, AccessPrivileges::CREATE_SERVER, AccessPrivileges::CREATE_TABLE, AccessPrivileges::CREATE_VIEW, DashboardDBObjectType, DatabaseDBObjectType, AccessPrivileges::DELETE_DASHBOARD, AccessPrivileges::DELETE_FROM_TABLE, AccessPrivileges::DROP_SERVER, AccessPrivileges::DROP_TABLE, AccessPrivileges::DROP_VIEW, AccessPrivileges::EDIT_DASHBOARD, AccessPrivileges::hasPermission(), AccessPrivileges::INSERT_INTO_TABLE, AccessPrivileges::privileges, AccessPrivileges::SELECT_FROM_TABLE, AccessPrivileges::SELECT_FROM_VIEW, AccessPrivileges::SERVER_USAGE, ServerDBObjectType, spatial_type::suffix(), TableDBObjectType, AccessPrivileges::TRUNCATE_TABLE, run_benchmark_import::type, UNREACHABLE, AccessPrivileges::UPDATE_IN_TABLE, AccessPrivileges::VIEW_DASHBOARD, AccessPrivileges::VIEW_SQL_EDITOR, and ViewDBObjectType.
Referenced by populate_import_buffers_for_catalog_permissions().
std::string foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_table_ddl | ( | int32_t | db_id, |
const TableDescriptor & | td | ||
) |
Definition at line 95 of file InternalCatalogDataWrapper.cpp.
References CHECK, Catalog_Namespace::SysCatalog::getCatalog(), Catalog_Namespace::SysCatalog::instance(), foreign_storage::kDeletedValueIndicator, and TableDescriptor::tableId.
Referenced by populate_import_buffers_for_catalog_tables().
std::string foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_table_type | ( | const TableDescriptor & | td | ) |
Definition at line 83 of file InternalCatalogDataWrapper.cpp.
References TableDescriptor::isForeignTable(), TableDescriptor::isTemporaryTable(), and TableDescriptor::isView.
Referenced by populate_import_buffers_for_catalog_tables().
std::string foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::get_user_name | ( | int32_t | user_id | ) |
Definition at line 72 of file InternalCatalogDataWrapper.cpp.
References Catalog_Namespace::SysCatalog::instance(), foreign_storage::kDeletedValueIndicator, and Catalog_Namespace::UserMetadata::userName.
Referenced by populate_import_buffers_for_catalog_dashboards(), populate_import_buffers_for_catalog_databases(), populate_import_buffers_for_catalog_permissions(), and populate_import_buffers_for_catalog_tables().
void foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::populate_import_buffers_for_catalog_dashboards | ( | const std::map< int32_t, std::vector< DashboardDescriptor >> & | dashboards_by_database, |
std::map< std::string, import_export::TypedImportBuffer * > & | import_buffers | ||
) |
Definition at line 191 of file InternalCatalogDataWrapper.cpp.
References get_data_sources(), foreign_storage::get_db_name(), and get_user_name().
Referenced by foreign_storage::InternalCatalogDataWrapper::populateChunkBuffersForTable().
void foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::populate_import_buffers_for_catalog_databases | ( | const std::list< Catalog_Namespace::DBMetadata > & | databases, |
std::map< std::string, import_export::TypedImportBuffer * > & | import_buffers | ||
) |
Definition at line 405 of file InternalCatalogDataWrapper.cpp.
References get_user_name().
Referenced by foreign_storage::InternalCatalogDataWrapper::populateChunkBuffersForTable().
void foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::populate_import_buffers_for_catalog_permissions | ( | const std::vector< ObjectRoleDescriptor > & | object_permissions, |
std::map< std::string, import_export::TypedImportBuffer * > & | import_buffers | ||
) |
Definition at line 363 of file InternalCatalogDataWrapper.cpp.
References foreign_storage::get_db_name(), get_object_type_str(), get_permissions(), and get_user_name().
Referenced by foreign_storage::InternalCatalogDataWrapper::populateChunkBuffersForTable().
void foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::populate_import_buffers_for_catalog_role_assignments | ( | const std::map< std::string, std::vector< std::string >> & | user_names_by_role_, |
std::map< std::string, import_export::TypedImportBuffer * > & | import_buffers | ||
) |
Definition at line 434 of file InternalCatalogDataWrapper.cpp.
Referenced by foreign_storage::InternalCatalogDataWrapper::populateChunkBuffersForTable().
void foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::populate_import_buffers_for_catalog_roles | ( | const std::set< std::string > & | roles, |
std::map< std::string, import_export::TypedImportBuffer * > & | import_buffers | ||
) |
Definition at line 425 of file InternalCatalogDataWrapper.cpp.
References CHECK.
Referenced by foreign_storage::InternalCatalogDataWrapper::populateChunkBuffersForTable().
void foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::populate_import_buffers_for_catalog_tables | ( | const std::map< int32_t, std::vector< TableDescriptor >> & | tables_by_database, |
std::map< std::string, import_export::TypedImportBuffer * > & | import_buffers | ||
) |
Definition at line 107 of file InternalCatalogDataWrapper.cpp.
References foreign_storage::get_db_name(), get_table_ddl(), get_table_type(), get_user_name(), and run_benchmark_import::tables.
Referenced by foreign_storage::InternalCatalogDataWrapper::populateChunkBuffersForTable().
void foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::populate_import_buffers_for_catalog_users | ( | const std::list< Catalog_Namespace::UserMetadata > & | all_users, |
std::map< std::string, import_export::TypedImportBuffer * > & | import_buffers | ||
) |
Definition at line 42 of file InternalCatalogDataWrapper.cpp.
References foreign_storage::get_db_name(), and set_null().
Referenced by foreign_storage::InternalCatalogDataWrapper::populateChunkBuffersForTable().
void foreign_storage::anonymous_namespace{InternalCatalogDataWrapper.cpp}::set_null | ( | import_export::TypedImportBuffer * | import_buffer | ) |
Definition at line 38 of file InternalCatalogDataWrapper.cpp.
References import_export::TypedImportBuffer::add_value(), and import_export::TypedImportBuffer::getColumnDesc().