Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TRDBCServer.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TRDBCServer.h
1
// $Id: TRDBCServer.h,v 1.1.1.1 2004/02/18 20:58:02 dave Exp $
2
//*-- Author : Valeriy Onuchin 14/02/2001
3
//
4
5
//
6
// TRDBCServer class provides access to db server via RDBC.
7
8
#ifndef ROOT_TSQLServer
9
#include <TSQLServer.h>
10
#endif
11
12
#ifndef RDBC_TSQLResultSet_h
13
#include <
RDBC/TSQLResultSet.h
>
14
#endif
15
16
class
TSQLConnection
;
18
class
TRDBCServer
:
public
TSQLServer
19
{
20
private
:
21
TSQLConnection
*
fConnection
;
// current connection
22
TString
fDbName
;
// database product name
23
24
public
:
25
TRDBCServer
(
const
char
*
db
,
const
char
*
uid
,
const
char
*pw);
26
~TRDBCServer
();
27
28
void
Close
(Option_t *opt=
""
);
29
TSQLResultSet
*
Query
(
const
char
*sql);
30
Int_t
SelectDataBase
(
const
char
*dbname);
31
TSQLResultSet
*
GetDataBases
(
const
char
*wild = 0);
32
TSQLResultSet
*
GetTables
(
const
char
*dbname,
const
char
*wild = 0);
33
TSQLResultSet
*
GetColumns
(
const
char
*dbname,
34
const
char
*table,
35
const
char
*wild = 0);
36
Int_t
CreateDataBase
(
const
char
*dbname);
37
Int_t
DropDataBase
(
const
char
*dbname);
38
Int_t
Reload
();
39
Int_t
Shutdown
();
40
const
char
*
ServerInfo
();
41
TSQLConnection
*
GetConnection
()
const
{
return
fConnection
; }
42
43
ClassDef(
TRDBCServer
,0)
// Connection to SQL server via RDBC
44
};
RDBC
blob
master
include
RDBC
TRDBCServer.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:48
using
1.8.2 with
sPHENIX GitHub integration