hybridse::vm::RunSession

#include <engine.h>

A RunSession maintain SQL running context, including compile information, procedure name.

Summary

Public functions

RunSession(EngineMode engine_mode)

GetSchema() const

const Schema & Return query result schema.

const std::string & Return query schema string.

std::shared_ptr< hybridse::vm::CompileInfo > Return query related compile information.

SetCompileInfo(const std::shared_ptr< hybridse::vm::CompileInfo > & compile_info)

bool Update query related compile information.

void Enable printing debug information while running a query.

void Disable printing debug information while running a query.

bool Return if this run session support printing debug information.

SetSpName(const std::string & sp_name)

void Bind this run session with specific procedure.

engine_mode() const

EngineMode Return the engine mode of this run session.

Public Functions

function RunSession

explicit RunSession(
    EngineMode engine_mode
)

function ~RunSession

virtual ~RunSession()

function GetSchema

inline virtual const Schema & GetSchema() const

Return query result schema.

function GetEncodedSchema

inline virtual const std::string & GetEncodedSchema() const

Return query schema string.

function GetCompileInfo

inline virtual std::shared_ptr< hybridse::vm::CompileInfo > GetCompileInfo()

Return query related compile information.

function SetCompileInfo

bool SetCompileInfo(
    const std::shared_ptr< hybridse::vm::CompileInfo > & compile_info
)

Update query related compile information.

function EnableDebug

inline void EnableDebug()

Enable printing debug information while running a query.

function DisableDebug

inline void DisableDebug()

Disable printing debug information while running a query.

function IsDebug

inline bool IsDebug()

Return if this run session support printing debug information.

function SetSpName

inline void SetSpName(
    const std::string & sp_name
)

Bind this run session with specific procedure.

function engine_mode

inline EngineMode engine_mode() const

Return the engine mode of this run session.

Protected Attributes

variable compile_info_

std::shared_ptr< hybridse::vm::CompileInfo > compile_info_;

variable engine_mode_

hybridse::vm::EngineMode engine_mode_;

variable is_debug_

bool is_debug_;

variable sp_name_

std::string sp_name_;

variable Engine

friend Engine;

Last updated