26#ifndef MYSQLSHDK_SCRIPTING_POLYGLOT_OBJECTS_POLYGLOT_RESULT_H_
27#define MYSQLSHDK_SCRIPTING_POLYGLOT_OBJECTS_POLYGLOT_RESULT_H_
42 explicit PolyResult(
const std::shared_ptr<jit_executor::db::IResult> &
result);
45 std::string
class_name()
const override {
return "Result"; }
60 std::shared_ptr<jit_executor::db::IResult>
m_result;
Definition: polyglot_object_bridge.h:38
Definition: polyglot_result.h:40
std::shared_ptr< jit_executor::db::IResult > m_result
Definition: polyglot_result.h:60
~PolyResult() override=default
std::shared_ptr< Row > fetch_one() const
Definition: polyglot_result.cc:80
std::vector< std::string > * methods() const override
Definition: polyglot_result.h:50
std::string class_name() const override
Definition: polyglot_result.h:45
shcore::Array_t fetch_all() const
Definition: polyglot_result.cc:94
std::vector< std::string > m_column_names
Definition: polyglot_result.h:70
static std::vector< std::string > m_methods
Definition: polyglot_result.h:59
Value call(const std::string &name, const Argument_list &args) override
Calls the named method with the given args.
Definition: polyglot_result.cc:114
shcore::Dictionary_t fetch_one_object() const
Definition: polyglot_result.cc:104
void update_column_cache() const
Definition: polyglot_result.cc:55
shcore::Array_t m_columns
Definition: polyglot_result.h:69
std::vector< std::string > get_column_names() const
Definition: polyglot_result.cc:75
PolyResult(const std::shared_ptr< jit_executor::db::IResult > &result)
Definition: polyglot_result.cc:47
bool next_result()
Definition: polyglot_result.cc:109
void reset_column_cache()
Definition: polyglot_result.cc:50
Definition: file_system_exceptions.h:34
Value::Array_type_ref Array_t
Definition: jit_executor_value.h:431
std::vector< Value > Argument_list
Definition: jit_executor_value.h:429
Value::Map_type_ref Dictionary_t
Definition: jit_executor_value.h:430
Pointer to a function that may be implemented in any language.
Definition: jit_executor_value.h:130