MySQL 9.3.0
Source Code Documentation
shcore::polyglot::Column Class Reference

#include <polyglot_column.h>

Inheritance diagram for shcore::polyglot::Column:
[legend]

Public Member Functions

 Column (const std::shared_ptr< jit_executor::db::IColumn > &meta, const shcore::Value &type)
 
std::string class_name () const override
 
shcore::Value get_member (const std::string &prop) const override
 Returns the value of a member. More...
 
const std::string & get_schema_name () const
 
const std::string & get_table_name () const
 
const std::string & get_table_label () const
 
const std::string & get_column_name () const
 
const std::string & get_column_label () const
 
shcore::Value get_type () const
 
uint32_t get_length () const
 
int get_fractional_digits () const
 
bool is_number_signed () const
 
bool is_zerofill () const
 
std::string get_flags () const
 
bool is_binary () const
 
bool is_numeric () const
 
virtual Value get_member (size_t) const
 Returns the value of a member. More...
 
virtual Value get_member (const std::string &) const
 Returns the value of a member. More...
 
- Public Member Functions inherited from shcore::polyglot::Object_bridge
virtual ~Object_bridge ()=default
 
virtual std::string & append_descr (std::string &s_out, int indent=-1, int quote_strings=0) const
 
virtual std::string & append_repr (std::string &s_out) const
 
virtual void append_json (shcore::JSON_dumper &dumper) const
 
virtual std::vector< std::string > get_members () const
 Returns the list of members that this object has. More...
 
virtual bool has_member (const std::string &prop) const
 Verifies if the object has a member. More...
 
virtual void set_member (const std::string &, Value)
 Sets the value of a member. More...
 
virtual bool is_indexed () const
 Returns the value of a member. More...
 
virtual void set_member (size_t, Value)
 Sets the value of a member. More...
 
virtual size_t length () const
 Returns the number of indexable members. More...
 
bool has_method (const std::string &name) const
 Returns true if a method with the given name exists. More...
 
virtual Value call (const std::string &, const Argument_list &)
 Calls the named method with the given args. More...
 

Private Member Functions

std::vector< std::string > * properties () const override
 

Private Attributes

std::shared_ptr< jit_executor::db::IColumnm_column
 
shcore::Value m_type
 

Static Private Attributes

static std::vector< std::string > m_properties
 

Constructor & Destructor Documentation

◆ Column()

shcore::polyglot::Column::Column ( const std::shared_ptr< jit_executor::db::IColumn > &  meta,
const shcore::Value type 
)

Member Function Documentation

◆ class_name()

std::string shcore::polyglot::Column::class_name ( ) const
inlineoverridevirtual

◆ get_column_label()

const std::string & shcore::polyglot::Column::get_column_label ( ) const
inline

◆ get_column_name()

const std::string & shcore::polyglot::Column::get_column_name ( ) const
inline

◆ get_flags()

std::string shcore::polyglot::Column::get_flags ( ) const
inline

◆ get_fractional_digits()

int shcore::polyglot::Column::get_fractional_digits ( ) const
inline

◆ get_length()

uint32_t shcore::polyglot::Column::get_length ( ) const
inline

◆ get_member() [1/3]

virtual Value shcore::polyglot::Object_bridge::get_member ( const std::string &  ) const
inlinevirtual

Returns the value of a member.

Reimplemented from shcore::polyglot::Object_bridge.

◆ get_member() [2/3]

shcore::Value shcore::polyglot::Column::get_member ( const std::string &  ) const
overridevirtual

Returns the value of a member.

Reimplemented from shcore::polyglot::Object_bridge.

◆ get_member() [3/3]

virtual Value shcore::polyglot::Object_bridge::get_member ( size_t  ) const
inlinevirtual

Returns the value of a member.

Reimplemented from shcore::polyglot::Object_bridge.

◆ get_schema_name()

const std::string & shcore::polyglot::Column::get_schema_name ( ) const
inline

◆ get_table_label()

const std::string & shcore::polyglot::Column::get_table_label ( ) const
inline

◆ get_table_name()

const std::string & shcore::polyglot::Column::get_table_name ( ) const
inline

◆ get_type()

shcore::Value shcore::polyglot::Column::get_type ( ) const
inline

◆ is_binary()

bool shcore::polyglot::Column::is_binary ( ) const
inline

◆ is_number_signed()

bool shcore::polyglot::Column::is_number_signed ( ) const
inline

◆ is_numeric()

bool shcore::polyglot::Column::is_numeric ( ) const
inline

◆ is_zerofill()

bool shcore::polyglot::Column::is_zerofill ( ) const
inline

◆ properties()

std::vector< std::string > * shcore::polyglot::Column::properties ( ) const
inlineoverrideprivatevirtual

Reimplemented from shcore::polyglot::Object_bridge.

Member Data Documentation

◆ m_column

std::shared_ptr<jit_executor::db::IColumn> shcore::polyglot::Column::m_column
private

◆ m_properties

std::vector< std::string > shcore::polyglot::Column::m_properties
staticprivate
Initial value:
= {
constexpr const char * k_table_label
Definition: polyglot_column.cc:40
constexpr const char * k_number_signed
Definition: polyglot_column.cc:46
constexpr const char * k_schema_name
Definition: polyglot_column.cc:38
constexpr const char * k_table_name
Definition: polyglot_column.cc:39
constexpr const char * k_length
Definition: polyglot_column.cc:44
constexpr const char * k_flags
Definition: polyglot_column.cc:51
constexpr const char * k_column_label
Definition: polyglot_column.cc:42
constexpr const char * k_fractional_digits
Definition: polyglot_column.cc:45
constexpr const char * k_column_name
Definition: polyglot_column.cc:41
constexpr const char * k_type
Definition: polyglot_column.cc:43
constexpr const char * k_zero_fill
Definition: polyglot_column.cc:50

◆ m_type

shcore::Value shcore::polyglot::Column::m_type
private

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