mysql++.h
Go to the documentation of this file.
/***********************************************************************
Copyright (c) 1998 by Kevin Atkinson, (c) 1999-2001 by MySQL AB, and
(c) 2004-2010 by Educational Technology Resources, Inc. Others may
also hold copyrights on code in this file. See the CREDITS.txt file
in the top directory of the distribution for details.
This file is part of MySQL++.
MySQL++ is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
MySQL++ is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public
License along with MySQL++; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
USA
***********************************************************************/
#ifndef MYSQLPP_MYSQLPP_H
#define MYSQLPP_MYSQLPP_H
#define MYSQLPP_VERSION(major, minor, bugfix) \
(((major) << 16) | ((minor) << 8) | (bugfix))
#define MYSQLPP_HEADER_VERSION MYSQLPP_VERSION(3, 2, 3)
// This #include order gives the fewest redundancies in the #include
// dependency chain.
#include "connection.h"
#include "cpool.h"
#include "query.h"
#include "scopedconnection.h"
#include "sql_types.h"
#include "transaction.h"
namespace mysqlpp {
MYSQLPP_EXPORT unsigned int get_library_version();
// This won't exist forever! Wean yourself away from these as soon as
// you can!
#if defined(MYSQLPP_OLD_CLASS_NAMES)
# define ColData String
# define NullisBlank NullIsBlank
# define NullisNull NullIsNull
# define NullisZero NullIsZero
# define ResNSel SimpleResult
# define Result StoreQueryResult
# define ResUse UseQueryResult
# define SQLString SQLTypeAdapter
#endif
} // end namespace mysqlpp
#endif // !defined(MYSQLPP_MYSQLPP_H)
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.