![]() |
MySQL 9.5.0
Source Code Documentation
|
#include <polyglot_session.h>
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< PolyResult > | run_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::ISession > | m_session |
Static Private Attributes | |
| static std::vector< std::string > | m_methods = {k_run_sql} |
|
explicit |
|
overridedefault |
|
overridevirtual |
Calls the named method with the given args.
Reimplemented from shcore::polyglot::Object_bridge.
|
inlineoverridevirtual |
Implements shcore::polyglot::Object_bridge.
|
inlineoverrideprivatevirtual |
Reimplemented from shcore::polyglot::Object_bridge.
| void shcore::polyglot::Session::reset | ( | ) |
| std::shared_ptr< PolyResult > shcore::polyglot::Session::run_sql | ( | const Argument_list & | args | ) |
|
staticprivate |
|
private |