Pol
Revision:cb584c9
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
sqlmod.h
Go to the documentation of this file.
1
7
#ifndef SQLMOD_H
8
#define SQLMOD_H
9
10
#include <string>
11
12
#include "../../bscript/execmodl.h"
13
#include "../uoexec.h"
14
15
namespace
Pol
16
{
17
namespace
Bscript
18
{
19
class
BObjectImp;
20
class
Executor;
21
class
ObjArray;
22
}
// namespace Bscript
23
namespace
Core
24
{
25
class
UOExecutor;
26
}
// namespace Core
27
}
// namespace Pol
28
template
<
class
T>
29
class
weak_ptr
;
30
31
namespace
Pol
32
{
33
namespace
Core
34
{
35
class
BSQLConnection;
36
}
37
namespace
Module
38
{
39
class
SQLExecutorModule
:
public
Bscript::TmplExecutorModule
<SQLExecutorModule>
40
{
41
public
:
42
SQLExecutorModule
(
Bscript::Executor
& exec );
43
44
Bscript::BObjectImp
* mf_ConnectToDB();
45
Bscript::BObjectImp
* mf_Query();
46
Bscript::BObjectImp
* mf_Close();
47
Bscript::BObjectImp
* mf_NumFields();
48
Bscript::BObjectImp
* mf_AffectedRows();
49
Bscript::BObjectImp
* mf_FetchRow();
50
Bscript::BObjectImp
* mf_NumRows();
51
Bscript::BObjectImp
* mf_SelectDb();
52
Bscript::BObjectImp
* mf_FieldName();
53
54
static
Bscript::BObjectImp
* background_connect(
weak_ptr<Core::UOExecutor>
uoexec,
55
const
std::string host,
56
const
std::string username,
57
const
std::string password );
58
static
Bscript::BObjectImp
* background_select(
weak_ptr<Core::UOExecutor>
uoexec,
59
Core::BSQLConnection
* sql,
const
std::string db );
60
static
Bscript::BObjectImp
* background_query(
weak_ptr<Core::UOExecutor>
uoexec,
61
Core::BSQLConnection
* sql,
const
std::string query,
62
const
Bscript::ObjArray
* params );
63
64
private
:
65
Core::UOExecutor
&
uoexec
;
66
};
67
}
68
}
69
#endif
Pol::Module::SQLExecutorModule
Definition:
sqlmod.h:39
Pol::Core::UOExecutor
Definition:
uoexec.h:32
Pol::Core::BSQLConnection
Definition:
sqlscrobj.h:122
Pol::Bscript::BObjectImp
Definition:
bobject.h:59
Pol::Module::SQLExecutorModule::uoexec
Core::UOExecutor & uoexec
Definition:
sqlmod.h:65
Pol::Bscript::ObjArray
Definition:
bobject.h:500
weak_ptr
Definition:
weakptr.h:46
Pol::Bscript::TmplExecutorModule
Definition:
execmodl.h:100
Pol
Definition:
berror.cpp:12
Pol::Bscript::Executor
Definition:
executor.h:81
pol
module
sqlmod.h
Generated on Wed Oct 10 2018 02:42:13 for Pol by
1.8.11