MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
mrs::database::entry::Object Class Reference

#include <object.h>

Inheritance diagram for mrs::database::entry::Object:
[legend]

Public Member Functions

bool is_read_only () const
 
std::string as_graphql (bool extended=false) const
 
- Public Member Functions inherited from mrs::database::entry::Table
virtual ~Table ()=default
 
bool with_insert () const
 
bool with_update () const
 
bool with_update (const Column &column) const
 
bool with_update_any_column () const
 
bool with_delete () const
 
bool with_check (const Column &column) const
 
bool needs_etag () const
 
std::shared_ptr< ObjectFieldget_field (std::string_view name) const
 
std::shared_ptr< ObjectFieldget_field_or_throw (std::string_view name) const
 
std::shared_ptr< Columnget_column (const entry::UniversalId &id) const
 
std::shared_ptr< Columnget_column (std::string_view column_name) const
 
std::shared_ptr< Columnget_column_or_throw (std::string_view column_name) const
 
std::string table_key () const
 
std::shared_ptr< Columnget_column_with_field_name (const std::string &name) const
 
std::vector< const Column * > primary_key () const
 
const Columntry_get_generated_id_column () const
 
const Columntry_get_row_ownership_column () const
 
template<typename T , typename R >
foreach_field (std::function< R(T &)> fn) const
 
template<typename T , typename R >
foreach_field (std::function< R(const T &)> fn) const
 
template<typename R >
foreach_field (std::function< R(const Column &)> column_fn, std::function< R(const ForeignKeyReference &)> fk_fn) const
 
const ForeignKeyReferenceget_reference_to_parent (const Table &parent) const
 
bool is_editable (bool &has_unnested_1n) const
 

Public Attributes

std::string name
 
KindType kind
 
- Public Attributes inherited from mrs::database::entry::Table
std::string schema
 
std::string table
 
std::string table_alias
 
std::vector< std::shared_ptr< ObjectField > > fields
 
std::optional< OwnerUserFielduser_ownership_field
 
Operation::ValueType crud_operations
 
bool with_check_ = true
 
bool unnests_to_value = false
 

Additional Inherited Members

- Protected Member Functions inherited from mrs::database::entry::Table
std::string as_graphql (int depth, bool extended) const
 
- Protected Attributes inherited from mrs::database::entry::Table
std::optional< bool > needs_etag_
 

Member Function Documentation

◆ as_graphql()

std::string mrs::database::entry::Object::as_graphql ( bool  extended = false) const

◆ is_read_only()

bool mrs::database::entry::Object::is_read_only ( ) const

Member Data Documentation

◆ kind

KindType mrs::database::entry::Object::kind

◆ name

std::string mrs::database::entry::Object::name

The documentation for this class was generated from the following files: