Qore Programming Language  1.12.0
QC_DatasourcePool.h
1 /* -*- mode: c++; indent-tabs-mode: nil -*- */
2 /*
3  QC_DatasourcePool.h
4 
5  Qore Programming Language
6 
7  Copyright (C) 2003 - 2022 Qore Technologies, s.r.o.
8 
9  The Datasource class provides the low-level interface to Qore DBI drivers.
10 
11  NOTE that this class is *not* thread-safe. To use this class in a multi-
12  threaded context, per-thread connection locking must be done at a level
13  above this class...
14 
15  NOTE that 2 copies of connection values are kept in case
16  the values are changed while a connection is in use
17 
18  Permission is hereby granted, free of charge, to any person obtaining a
19  copy of this software and associated documentation files (the "Software"),
20  to deal in the Software without restriction, including without limitation
21  the rights to use, copy, modify, merge, publish, distribute, sublicense,
22  and/or sell copies of the Software, and to permit persons to whom the
23  Software is furnished to do so, subject to the following conditions:
24 
25  The above copyright notice and this permission notice shall be included in
26  all copies or substantial portions of the Software.
27 
28  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
29  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
30  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
31  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
32  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
33  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
34  DEALINGS IN THE SOFTWARE.
35 
36  Note that the Qore library is released under a choice of three open-source
37  licenses: MIT (as above), LGPL 2+, or GPL 2+; see README-LICENSE for more
38  information.
39 */
40 
41 #ifndef _QORUS_QC_DATASOURCEPOOL_H
42 
43 #define _QORUS_QC_DATASOURCEPOOL_H
44 
45 #include <qore/AbstractPrivateData.h>
46 #include "qore/intern/DatasourcePool.h"
47 
48 #include <cstdlib>
49 #include <cstring>
50 
51 DLLEXPORT extern qore_classid_t CID_DATASOURCEPOOL;
52 DLLLOCAL extern QoreClass* QC_DATASOURCEPOOL;
53 DLLLOCAL extern QoreClass* QC_ABSTRACTDATASOURCE;
54 DLLLOCAL extern QoreClass* QC_ABSTRACTSQLSTATEMENT;
55 
56 QoreClass *initDatasourcePoolClass(QoreNamespace& ns);
57 
58 #endif
defines a Qore-language class
Definition: QoreClass.h:249
contains constants, classes, and subnamespaces in QoreProgram objects
Definition: QoreNamespace.h:65
unsigned qore_classid_t
used for the unique class ID for QoreClass objects
Definition: common.h:79