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

#include <polyglot_session.h>

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

Public Member Functions

 Session (const std::shared_ptr< jit_executor::db::ISession > &session)
 
 ~Session () override=default
 
std::string class_name () const override
 
Value call (const std::string &name, const Argument_list &args) override
 Calls the named method with the given args. More...
 
std::shared_ptr< PolyResultrun_sql (const Argument_list &args)
 
void reset ()
 
- 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 Value get_member (size_t) 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 get_member (const std::string &) const
 Returns the value of a member. More...
 

Private Member Functions

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

Private Attributes

std::shared_ptr< jit_executor::db::ISessionm_session
 

Static Private Attributes

static std::vector< std::string > m_methods = {k_run_sql}
 

Constructor & Destructor Documentation

◆ Session()

shcore::polyglot::Session::Session ( const std::shared_ptr< jit_executor::db::ISession > &  session)
explicit

◆ ~Session()

shcore::polyglot::Session::~Session ( )
overridedefault

Member Function Documentation

◆ call()

Value shcore::polyglot::Session::call ( const std::string &  name,
const Argument_list args 
)
overridevirtual

Calls the named method with the given args.

Reimplemented from shcore::polyglot::Object_bridge.

◆ class_name()

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

◆ methods()

std::vector< std::string > * shcore::polyglot::Session::methods ( ) const
inlineoverrideprivatevirtual

Reimplemented from shcore::polyglot::Object_bridge.

◆ reset()

void shcore::polyglot::Session::reset ( )

◆ run_sql()

std::shared_ptr< PolyResult > shcore::polyglot::Session::run_sql ( const Argument_list args)

Member Data Documentation

◆ m_methods

std::vector< std::string > shcore::polyglot::Session::m_methods = {k_run_sql}
staticprivate

◆ m_session

std::shared_ptr<jit_executor::db::ISession> shcore::polyglot::Session::m_session
private

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