26#ifndef MYSQLSHDK_SCRIPTING_POLYGLOT_OBJECTS_POLYGLOT_SESSION_H_
27#define MYSQLSHDK_SCRIPTING_POLYGLOT_OBJECTS_POLYGLOT_SESSION_H_
42 explicit Session(
const std::shared_ptr<jit_executor::db::ISession> &session);
45 std::string
class_name()
const override {
return "Session"; }
56 std::shared_ptr<jit_executor::db::ISession>
m_session;
Definition: polyglot_object_bridge.h:38
Definition: polyglot_session.h:40
std::shared_ptr< jit_executor::db::ISession > m_session
Definition: polyglot_session.h:56
std::vector< std::string > * methods() const override
Definition: polyglot_session.h:58
~Session() override=default
std::shared_ptr< PolyResult > run_sql(const Argument_list &args)
Definition: polyglot_session.cc:110
std::string class_name() const override
Definition: polyglot_session.h:45
Value call(const std::string &name, const Argument_list &args) override
Calls the named method with the given args.
Definition: polyglot_session.cc:100
void reset()
Definition: polyglot_session.cc:108
Session(const std::shared_ptr< jit_executor::db::ISession > &session)
Definition: polyglot_session.cc:96
static std::vector< std::string > m_methods
Definition: polyglot_session.h:55
Definition: file_system_exceptions.h:34
std::vector< Value > Argument_list
Definition: jit_executor_value.h:429
Pointer to a function that may be implemented in any language.
Definition: jit_executor_value.h:130