- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

mysql++.h
Go to the documentation of this file.
1
11 /***********************************************************************
12 Copyright (c) 1998 by Kevin Atkinson, (c) 1999-2001 by MySQL AB, and
13 (c) 2004-2010 by Educational Technology Resources, Inc. Others may
14 also hold copyrights on code in this file. See the CREDITS.txt file
15 in the top directory of the distribution for details.
16
17 This file is part of MySQL++.
18
19 MySQL++ is free software; you can redistribute it and/or modify it
20 under the terms of the GNU Lesser General Public License as published
21 by the Free Software Foundation; either version 2.1 of the License, or
22 (at your option) any later version.
23
24 MySQL++ is distributed in the hope that it will be useful, but WITHOUT
25 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
26 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
27 License for more details.
28
29 You should have received a copy of the GNU Lesser General Public
30 License along with MySQL++; if not, write to the Free Software
31 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
32 USA
33 ***********************************************************************/
34
35 #ifndef MYSQLPP_MYSQLPP_H
36 #define MYSQLPP_MYSQLPP_H
37
42 #define MYSQLPP_VERSION(major, minor, bugfix) \
43 (((major) << 16) | ((minor) << 8) | (bugfix))
44
52 #define MYSQLPP_HEADER_VERSION MYSQLPP_VERSION(3, 2, 2)
53
54 // This #include order gives the fewest redundancies in the #include
55 // dependency chain.
56 #include "connection.h"
57 #include "cpool.h"
58 #include "query.h"
59 #include "scopedconnection.h"
60 #include "sql_types.h"
61 #include "transaction.h"
62
63 namespace mysqlpp {
64
72 MYSQLPP_EXPORT unsigned int get_library_version();
73
74 // This won't exist forever! Wean yourself away from these as soon as
75 // you can!
76 #if defined(MYSQLPP_OLD_CLASS_NAMES)
77 # define ColData String
78 # define NullisBlank NullIsBlank
79 # define NullisNull NullIsNull
80 # define NullisZero NullIsZero
81 # define ResNSel SimpleResult
82 # define Result StoreQueryResult
83 # define ResUse UseQueryResult
84 # define SQLString SQLTypeAdapter
85 #endif
86
87 } // end namespace mysqlpp
88
89 #endif // !defined(MYSQLPP_MYSQLPP_H)
90
91
scopedconnection.h
Declares the ScopedConnection class.
connection.h
Declares the Connection class.
query.h
Defines a class for building and executing SQL queries.
cpool.h
Declares the ConnectionPool class.
sql_types.h
Declares the closest C++ equivalent of each MySQL column type.
transaction.h
Declares the Transaction class.