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

function ~RunSession

function GetSchema

Return query result schema.

function GetEncodedSchema

Return query schema string.

function GetCompileInfo

Return query related compile information.

function SetCompileInfo

Update query related compile information.

function EnableDebug

Enable printing debug information while running a query.

function DisableDebug

Disable printing debug information while running a query.

function IsDebug

Return if this run session support printing debug information.

function SetSpName

Bind this run session with specific procedure.

function engine_mode

Return the engine mode of this run session.

Protected Attributes

variable compile_info_

variable engine_mode_

variable is_debug_

variable sp_name_

variable Engine

Last updated