Pol  Revision:cb584c9
Pol::Module::SQLExecutorModule Class Reference

#include <sqlmod.h>

+ Inheritance diagram for Pol::Module::SQLExecutorModule:

Public Member Functions

 SQLExecutorModule (Bscript::Executor &exec)
Bscript::BObjectImpmf_AffectedRows ()
Bscript::BObjectImpmf_Close ()
Bscript::BObjectImpmf_ConnectToDB ()
Bscript::BObjectImpmf_FetchRow ()
Bscript::BObjectImpmf_FieldName ()
Bscript::BObjectImpmf_NumFields ()
Bscript::BObjectImpmf_NumRows ()
Bscript::BObjectImpmf_Query ()
Bscript::BObjectImpmf_SelectDb ()
- Public Member Functions inherited from Pol::Bscript::ExecutorModule
virtual ~ExecutorModule ()=default
BApplicObjBasegetApplicObjParam (unsigned param, const BApplicObjType *object_type)
void * getApplicPtrParam (unsigned param, const BApplicObjType *pointer_type)
bool getObjArrayParam (unsigned param, ObjArray *&pobjarr)
bool getParam (unsigned param, int &value)
bool getParam (unsigned param, int &value, int maxval)
bool getParam (unsigned param, int &value, int minval, int maxval)
bool getParam (unsigned param, unsigned &value)
bool getParam (unsigned param, short &value)
bool getParam (unsigned param, short &value, short maxval)
bool getParam (unsigned param, short &value, short minval, short maxval)
bool getParam (unsigned param, unsigned short &value)
bool getParam (unsigned param, unsigned short &value, unsigned short maxval)
bool getParam (unsigned param, unsigned short &value, unsigned short minval, unsigned short maxval)
BObjectImpgetParamImp (unsigned param)
BObjectImpgetParamImp (unsigned param, BObjectImp::BObjectType type)
bool getParamImp (unsigned param, BObjectImp *&imp)
bool getRealParam (unsigned param, double &value)
const StringgetStringParam (unsigned param)
bool getStringParam (unsigned param, const String *&pstr)
const std::string & scriptname () const

Static Public Member Functions

static Bscript::BObjectImpbackground_connect (weak_ptr< Core::UOExecutor > uoexec, const std::string host, const std::string username, const std::string password)
static Bscript::BObjectImpbackground_query (weak_ptr< Core::UOExecutor > uoexec, Core::BSQLConnection *sql, const std::string query, const Bscript::ObjArray *params)
static Bscript::BObjectImpbackground_select (weak_ptr< Core::UOExecutor > uoexec, Core::BSQLConnection *sql, const std::string db)

Private Attributes


Additional Inherited Members

- Public Attributes inherited from Pol::Bscript::ExecutorModule
- Protected Member Functions inherited from Pol::Bscript::TmplExecutorModule< SQLExecutorModule >
 TmplExecutorModule (const char *modname, Executor &exec)
virtual BObjectImpexecFunc (unsigned idx) POL_OVERRIDE
virtual int functionIndex (const std::string &funcname) POL_OVERRIDE
virtual std::string functionName (unsigned idx) POL_OVERRIDE
- Protected Member Functions inherited from Pol::Bscript::ExecutorModule
 ExecutorModule (const char *moduleName, Executor &iExec)
- Protected Attributes inherited from Pol::Bscript::ExecutorModule
boost_utils::function_name_flystring moduleName

Detailed Description

Definition at line 39 of file sqlmod.h.

Constructor & Destructor Documentation

Pol::Module::SQLExecutorModule::SQLExecutorModule ( Bscript::Executor exec)

Definition at line 46 of file sqlmod.cpp.

Member Function Documentation

BObjectImp * Pol::Module::SQLExecutorModule::background_connect ( weak_ptr< Core::UOExecutor uoexec,
const std::string  host,
const std::string  username,
const std::string  password 
Bscript::BObjectImp * Pol::Module::SQLExecutorModule::background_select ( weak_ptr< Core::UOExecutor uoexec,
Core::BSQLConnection sql,
const std::string  db 

Member Data Documentation

Core::UOExecutor& Pol::Module::SQLExecutorModule::uoexec

The documentation for this class was generated from the following files: