Belle II Software
release-05-02-19
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
h
i
l
m
n
p
r
s
t
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
PostgreSQLInterface.h
1
#ifndef _Belle2_PostgreSQLInterface_hh
2
#define _Belle2_PostgreSQLInterface_hh
3
4
#include "daq/slc/database/DBInterface.h"
5
#include "daq/slc/system/Mutex.h"
6
7
typedef
struct
pg_conn PGconn;
8
typedef
struct
pg_result PGresult;
9
10
namespace
Belle2
{
16
class
PostgreSQLInterface
:
public
DBInterface
{
17
18
public
:
19
PostgreSQLInterface
(
const
std::string& host,
20
const
std::string& database,
21
const
std::string& user,
22
const
std::string& password,
23
int
port);
24
PostgreSQLInterface
();
25
virtual
~
PostgreSQLInterface
() {}
26
27
public
:
28
virtual
void
connect();
29
virtual
bool
isConnected();
30
virtual
void
execute_imp(
const
char
* command);
31
virtual
void
close();
32
virtual
void
clear();
33
virtual
DBRecordList loadRecords();
34
virtual
bool
checkTable(
const
std::string& tablename);
35
virtual
DBFieldTypeList getTableContents(
const
std::string& tablename);
36
37
private
:
38
PGconn* m_sq_conn;
39
PGresult* m_sq_result;
40
Mutex
m_mutex;
41
42
};
43
45
}
46
47
#endif
Belle2::Mutex
Definition:
Mutex.h:12
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::PostgreSQLInterface
Definition:
PostgreSQLInterface.h:16
Belle2::DBInterface
Definition:
DBInterface.h:19
daq
slc
psql
include
PostgreSQLInterface.h
Generated on Tue Jan 4 2022 02:54:27 for Belle II Software by
1.8.17